Пример #1
0
    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);
    }
Пример #2
0
    private void NextGerbong()
    {
        activeIndexGerbong++;

        if (activeIndexGerbong < dataGerbong.Count)
        {
            activeGerbong = dataGerbong[activeIndexGerbong];
            if (activeIndexGerbong < dataGerbong.Count - 1)
            {
                animationTweening.MoveTrain(-6f, 2);
            }
            else
            {
                animationTweening.MoveTrain(-8f, 2);
            }
        }
        else
        {
        }
    }