Exemple #1
0
    void Update()
    {
        DefaultCooldown1.fillAmount = playerWeaponController1.GetCooldownRemainingAsPercentage(bulletManager.GetBulletByName("Basic Hotdog"));
        WeaponCooldown1.fillAmount  = playerWeaponController1.GetCooldownRemainingAsPercentage(bulletManager.GetBulletByID(GameManager.SpecialWeaponToID(playerWeaponController1.weapon)));
        AbilityCooldown1.fillAmount = pc1.GetRollCooldownAsPercentage();

        DefaultCooldown2.fillAmount = playerWeaponController2.GetCooldownRemainingAsPercentage(bulletManager.GetBulletByName("Basic Hotdog"));
        WeaponCooldown2.fillAmount  = playerWeaponController2.GetCooldownRemainingAsPercentage(bulletManager.GetBulletByID(GameManager.SpecialWeaponToID(playerWeaponController2.weapon)));
        AbilityCooldown2.fillAmount = pc2.GetRollCooldownAsPercentage();
    }