Refactor: added GameManager

This commit is contained in:
Vova
2023-12-11 11:53:00 +02:00
parent 05bf8484f5
commit ea59babf93
23 changed files with 162 additions and 643 deletions
@@ -24,12 +24,12 @@ public class InGameMouseHandler : MonoBehaviour
private void Start()
{
InputManager.Instance.PlayerAction.PointClick.performed += ClickToMove;
GameManager.Instance.Input.PlayerAction.PointClick.performed += ClickToMove;
}
private void OnDestroy()
{
InputManager.Instance.PlayerAction.PointClick.performed += ClickToMove;
GameManager.Instance.Input.PlayerAction.PointClick.performed += ClickToMove;
}
private void ClickToMove(InputAction.CallbackContext context)