Exemple #1
0
    private IEnumerator SetUpEnteringOnBattle_Co()
    {
        //BattleManagerScript.Instance.CurrentBattleState = BattleState.Event;

        UMS.EnableBattleBars(false);

        ((Stage00_BossOctopus_Head)GetPiece(CharacterNameType.Stage00_BossOctopus_Head)).bossLady = ((Stage00_BossOctopus_Girl)GetPiece(CharacterNameType.Stage00_BossOctopus_Girl));

        SetAnimation(CharacterAnimationStateType.Arriving);

        while (!IsCharArrived)
        {
            yield return(null);
        }

        WaveManagerScript.Instance.BossArrived(this);

        while (!DialogueComplete)
        {
            yield return(null);
        }


        foreach (MinionType_Script piece in Pieces)
        {
            piece.UMS.Pos            = UMS.Pos;
            piece.UMS.CurrentTilePos = UMS.CurrentTilePos;
            //piece.StartAttakCo();
        }

        SetAttackReady(true);
        float timer = 0;

        while (timer <= 3)
        {
            yield return(new WaitForFixedUpdate());

            while (!VFXTestMode && (BattleManagerScript.Instance.CurrentBattleState != BattleState.Event))
            {
                yield return(new WaitForEndOfFrame());
            }
            timer += Time.fixedDeltaTime;
        }


        timer = 0;
        while (timer <= 3)
        {
            yield return(new WaitForFixedUpdate());

            while (!VFXTestMode && (BattleManagerScript.Instance.CurrentBattleState != BattleState.Event))
            {
                yield return(new WaitForEndOfFrame());
            }
            timer += Time.fixedDeltaTime;
        }

        BattleManagerScript.Instance.CurrentBattleState = BattleState.Battle;
    }
Exemple #2
0
    private IEnumerator SetUpEnteringOnBattle_Co()
    {
        if (oniForme == null)
        {
            GenerateBoss();
        }
        if (bossInfo == null)
        {
            SetupFromBossInfo();
        }
        SetAnimation("Idle", true);

        UMS.EnableBattleBars(false);
        CharArrivedOnBattleField();

        WaveManagerScript.Instance.BossArrived(this);
        CanAttack          = true;
        IsOnField          = true;
        oniForme.IsOnField = true;

        SetFormeAttackReady(this, true);
        SetFormeAttackReady(oniForme, false);
        oniForme.CharInfo.HealthStats.Regeneration = 0f;
        oniForme.UMS.Pos            = UMS.Pos;
        oniForme.UMS.CurrentTilePos = UMS.CurrentTilePos;

        float timer = 0;

        while (timer <= 3)
        {
            yield return(new WaitForFixedUpdate());

            while (!VFXTestMode && (BattleManagerScript.Instance.CurrentBattleState != BattleState.Event))
            {
                yield return(new WaitForEndOfFrame());
            }
            timer += Time.fixedDeltaTime;
        }
    }