Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        //Do cooldown if there is any
        if (skill.InCooldown)
        {
            skill.DoCooldown(Time.deltaTime);
            cooldownSlider.value = skill.CurrCooldown / skill.MaxCooldown;
        }

        if (skill.Active)
        {
            skill.DoOvertimeActive();
        }
    }