Пример #1
0
 public void SKill1Reset()
 {
     if (isSkill1CTime)
     {
         Skill1CTime -= Time.deltaTime;
         if (Skill1CTime <= 0)
         {
             UIPlayer.SkillSetUp(0);
             Skill1CTime   = Stat.skillCTime[0];
             isSkill1CTime = false;
         }
     }
 }
Пример #2
0
    public void Skill3Reset()
    {
        if (isSkill3CTime)
        {
            Skill3CTime -= Time.deltaTime;

            if (Skill3CTime <= 0)
            {
                UIPlayer.SkillSetUp(2);
                Skill3CTime = Stat.skillCTime[2];
                Skill3_End.SetActive(false);
                isSkill3CTime = false;
            }
        }
    }
Пример #3
0
    public void Skill2Reset()
    {
        if (isSkill2CTime)
        {
            Skill2CTime -= Time.deltaTime;
            if (Skill2CTime <= 0)
            {
                UIPlayer.SkillSetUp(1);
                Skill2CTime = Stat.skillCTime[1];

                isSkill2      = false;
                isSkill2CTime = false;

                Skill2_Normal.SetActive(false);
                Skill2_Special.SetActive(false);
            }
        }
    }