Exemplo n.º 1
0
    void TurnSetup()
    {
        _selectedTarget    = null;
        CurrentSkillStatus = SkillStatus.selectSkill;

        if (CurrentChar.Skills != null && CurrentChar.Skills.Length > 0)
        {
            CurrentChar.Skills.ToList().ForEach(skill => skill.ReduceCooldown(1));
        }
        if (CurrentChar.id > 0)
        {
            SetSkillInfo(CurrentChar);
        }
        else
        {
            CurrentSkillStatus = SkillStatus.enemyTurn;
            SetSkillPlaceHolders();
        }
        UnhighlightEverything();
        HightLightActivePlayer();

        CurrentChar.ApplyRegen();
        CurrentChar.ReduceTurnCounts();
    }