Beispiel #1
0
    protected override void Final()
    {
        base.Final();

        stateIndex   = 1;
        currentState = stateSequences[stateIndex];
        UpdateState();
    }
Beispiel #2
0
 private void NextState()
 {
     if (!GameVariables.GAME_OVER)
     {
         stateIndex++;
         currentState = stateSequences[stateIndex];
         UpdateState();
     }
 }
Beispiel #3
0
    private void Start()
    {
        Instance     = this;
        stateIndex   = 0;
        currentState = State_BirdMask.PREPARATION;

        Sprite = GetComponent <SpriteRenderer>();
        Init();
        TWAudioController.PlayBGM("ENGINE_COPTER", "helicopter_blades", TWAudioController.PlayType.TRANSITION);
        UpdateState();
        InGameUI.instance.UpdateHpBos(health);
    }