feat():完成3种模式的基本运行框架
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Core;
|
||||
using UnityEngine;
|
||||
using Interface;
|
||||
using Script.Gameplay.Input;
|
||||
@@ -21,11 +22,8 @@ namespace Gameplay.Player
|
||||
inputManager = InputManager.Instance;
|
||||
if (playerCamera == null)
|
||||
playerCamera = GameObject.FindWithTag("MainCamera").GetComponent<Camera>();
|
||||
|
||||
inputManager.Input.Player.SwitchWatchMode.performed += ctx =>
|
||||
{
|
||||
if (currentTarget != null) currentTarget.BeginEdit();
|
||||
};
|
||||
|
||||
ControllerLocator.Instance.Register(this);
|
||||
}
|
||||
|
||||
void Update()
|
||||
@@ -73,6 +71,11 @@ namespace Gameplay.Player
|
||||
}
|
||||
}
|
||||
|
||||
public IEditable GetCurrentTarget()
|
||||
{
|
||||
return currentTarget;
|
||||
}
|
||||
|
||||
void OnDrawGizmos()
|
||||
{
|
||||
if(!isDrawGizmos) return;
|
||||
|
Reference in New Issue
Block a user