Exemplo n.º 1
0
    private void RoundEnd(bool hasDamage)
    {
        spCount++;

        completeSe = new List <GroundSEController> ();
        canAttack  = new List <int> ();

        ChangeStatus(FightStatus.FightStart);

        OnCloseButton(TargetType.All.ToString());

        ResetDamage(false);

        for (int i = 0; i < jobRatios.Length; i++)
        {
            if (jobRatios [i] != recJobRatios [i])
            {
                for (int j = 0; j < fightController.players.Length; j++)
                {
                    if (fightController.GetJob("P", j) == i)
                    {
                        AddCanAttack(j);
                        playerButton [j].SetRatioTxt(jobRatios [i], true);
                        playerButton[j].onComplete = RecycleShowUp;
                        unCompleteCount++;
                    }
                }
            }
        }

        recJobRatios = jobRatios;

        MonsterCdDown();


        if (hasDamage)
        {
            StartCoroutine(CheckRatio());
        }
        else
        {
            fightController.EnemyFight();
        }

        groundPool.RoundEnd();

        hasDamage       = false;
        spaceCount      = 0;
        charaIdx        = null;
        startCharaImage = null;
        endCharaImage   = null;
        startGc         = null;
        endGc           = null;
        ratioCount      = new int[5] {
            0, 0, 0, 0, 0
        };

        recAllRatioData = allRatioData;
    }