Exemplo n.º 1
0
    bool CanUse(SkillBase skill)
    {
        if (!skill.CheckCD())
        {
            Debug.Log("Can not use skill, cold down now!" + skill.Name);
            return(false);
        }

        if (cur_mp < skill.NeedMp)
        {
            Debug.Log("Can not use skill, not enough mp!" + skill.Name);
            return(false);
        }

        return(true);
    }