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