feat():完成3种模式的基本运行框架
This commit is contained in:
@@ -21,7 +21,13 @@ namespace Gameplay.Player
|
||||
playerCamera = GameObject.FindWithTag("MainCamera").GetComponent<Camera>();
|
||||
|
||||
var input = InputManager.Instance.Input;
|
||||
input.Player.SwitchWatchMode.performed += ctx => currentTarget.Interact(this.gameObject);;
|
||||
input.Player.Interact.performed += ctx =>
|
||||
{
|
||||
if (currentTarget != null)
|
||||
{
|
||||
currentTarget.Interact(this.gameObject);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
void Update()
|
||||
|
Reference in New Issue
Block a user