protected override void Final() { base.Final(); stateIndex = 1; currentState = stateSequences[stateIndex]; UpdateState(); }
private void NextState() { if (!GameVariables.GAME_OVER) { stateIndex++; currentState = stateSequences[stateIndex]; UpdateState(); } }
private void Start() { GameData.ActiveBoss = GameData.BossType.UNHOLYCHARIOT; Instance = this; stateIndex = 0; currentState = State_Chariot.PREPARATION; activeIndexGerbong = 0; activeGerbong = dataGerbong[activeIndexGerbong]; Sprite = GetComponent <SpriteRenderer>(); Init(); animationTweening.MoveTrain("out_end", 0f); TWAudioController.PlayBGM("ENGINE_TRAIN", "train_engine", TWAudioController.PlayType.DEFAULT); TWAudioController.PlayBGM("ENGINE_BIKE", "bike_engine", TWAudioController.PlayType.DEFAULT); UpdateState(); InGameUI.instance.UpdateHpBos(health); }