cd代码段

void  Skills_CD()
    {
        if(pData.mp>=P_EPZ)
        {
            Skill_panel.SetActiveRecursively(false);
            is_Sikll = false;
        }else
        {
            Skill_panel.SetActiveRecursively(true);
        }
        if(NeedSkillsCD>0)
        {
            NeedSkillsCD-=Time.deltaTime;
            h_09.fillAmount = NeedSkillsCD/SkillsCD;
        }else if(NeedSkillsCD<=0)
        {
            NeedSkillsCD = 0;
            h_09.fillAmount = 0;
            
            
        }
    }

 

posted @ 2013-10-17 15:29  小薇林  阅读(209)  评论(0编辑  收藏  举报