Exemple #1
0
    bool SkillCommand(Transform chess)
    {
        bool      skillable = false;
        Transform theSkill  = decisions.GetSkill(chess);

        if (theSkill != null)
        {
            theSkill.GetComponent <SkillProperty>().ActivateSkill();
            CurrentRC.playerB.GetComponent <ManaCounter>().Mana -= theSkill.GetComponent <SkillProperty>().SkillCost;
        }
        else
        {
            skillable = false;
        }
        return(skillable);
    }