Example #1
0
    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;
    }
Example #2
0
 /// <summary>
 /// Active input, damage and ability
 /// </summary>
 public void GoToActiveState()
 {
     _state = new ActionState(this);
 }
Example #3
0
 public void GoToResetState()
 {
     _state = new ResetState(this);
 }
Example #4
0
 public void GoToDeadState()
 {
     _state = new IdleState(this);
 }