Ejemplo n.º 1
0
 private void InitShieldFunc()
 {
     shieldTime = GamerPrefs.GetShieldDuration();
     MovingThingsFactory.CanMakeShields = true;
     shieldCover.SetActive(false);
     isShielded = false;
 }
Ejemplo n.º 2
0
 private void InitShieldFunc()
 {
     shieldTime = GamerPrefs.GetShieldDuration();
     MovingTingsFactory.CAN_MAKE_SHIELDS = true;
     shieldCover.SetActive(false);
     isShielded = false;
 }
Ejemplo n.º 3
0
 private void HandleShield()
 {
     shieldDuration = GamerPrefs.GetShieldDuration();
     shieldDurationAmountText.text = "強 : " + shieldDuration.ToString();
     if (shieldDuration < ShieldDurationCap)
     {
         shildDurationUpgrCost       = (int)((shieldDuration * shieldDuration) / 2);
         shieldDurationCostText.text = "Upgrade Cost 金: " + shildDurationUpgrCost.ToString();
     }
     else
     {
         shildDurationUpgrCost         = int.MaxValue;
         shieldDurationCostText.text   = "Fully Upgraded";
         shieldDurationButtonText.text = "X";
     }
 }