Refactor: added GameManager
This commit is contained in:
@@ -54,7 +54,7 @@ public class Player : MonoBehaviour
|
||||
|
||||
private void Start()
|
||||
{
|
||||
TimeManager.Instance.OnMinuteChanged += UpdateStatsByClock;
|
||||
GameManager.Instance.Time.OnMinuteChanged += UpdateStatsByClock;
|
||||
_animator.applyRootMotion = true;
|
||||
_navAgent.updatePosition = false;
|
||||
|
||||
@@ -63,7 +63,7 @@ public class Player : MonoBehaviour
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
TimeManager.Instance.OnMinuteChanged -= UpdateStatsByClock;
|
||||
GameManager.Instance.Time.OnMinuteChanged -= UpdateStatsByClock;
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
||||
Reference in New Issue
Block a user