Exemple #1
0
    /// <summary>
    /// updates cooldown of an icon
    /// </summary>
    /// <param name="slot">icon slot to be updated</param>
    /// <param name="percentage">percentage of cooldown</param>
    public void UpdateCooldown(int slot, float percentage)
    {
        switch (slot)
        {
        case 1:
            icon1.setCooldown(percentage);
            break;

        case 2:
            icon2.setCooldown(percentage);
            break;

        case 3:
            icon3.setCooldown(percentage);
            break;

        case 4:
            icon4.setCooldown(percentage);
            break;
        }
    }