private void OnEnable() { CalculateWalkableTiles(); if (OnEnableSelector != null) { OnEnableSelector.Invoke(); } }
private void OnEnable() { if (currentState == null) { SwitchToMovementSelection(); } OnEnableSelector?.Invoke(); currentState.OnEnable(); }