Exemplo n.º 1
0
 private void OnEnable()
 {
     CalculateWalkableTiles();
     if (OnEnableSelector != null)
     {
         OnEnableSelector.Invoke();
     }
 }
Exemplo n.º 2
0
 private void OnEnable()
 {
     if (currentState == null)
     {
         SwitchToMovementSelection();
     }
     OnEnableSelector?.Invoke();
     currentState.OnEnable();
 }