private void OnEnable() { isMoving = false; switch (startState) { case States.Behind: State = new BehindPlatform(); break; case States.Center: State = new CenterPlatform(); break; case States.Front: State = new FrontPlatform(); break; } PlatformManager.OnMovePlatform += Platform_OnMovePlatform; }
/// <summary> /// Active input, damage and ability /// </summary> public void GoToActiveState() { _state = new ActionState(this); }
public void GoToResetState() { _state = new ResetState(this); }
public void GoToDeadState() { _state = new IdleState(this); }