示例#1
0
 void Update()
 {
     if (!stage.GetPauseState() &&
         !stage.GetGameOverState())
     {
         UpdateLaserState();
         this.transform.Find("IcoLaser").Find("Reuse").GetComponent <UnityEngine.UI.Image>().fillAmount = 1 - HeroShooting.LaserCooldown();
         this.transform.Find("IcoShoot").Find("Reuse").GetComponent <UnityEngine.UI.Image>().fillAmount = 1 - HeroShooting.BulletCooldown();
         this.transform.Find("IcoBomb").Find("Reuse").GetComponent <UnityEngine.UI.Image>().fillAmount  = 1 - HeroShooting.BombCooldown();
         this.transform.Find("IcoLaser").Find("Adding").Find("Progress").GetComponent <UnityEngine.UI.Image>().fillAmount = HeroShooting.LaserAddingProgress();
         UpdateBombState();
     }
 }