示例#1
0
 public override void ShieldBeSruck(int _dmg)
 {
     base.ShieldBeSruck(_dmg);
     ShieldLevel -= 1;
     if (ShieldLevel < 1)
     {
         ShieldLevel = 0;
         Trans_Shield.gameObject.SetActive(false);
         BattleCanvas.PlayerDisArm();
     }
 }
示例#2
0
 public void SetShield()
 {
     if (ShieldLevel < 1)
     {
         Trans_Shield.gameObject.SetActive(false);
         BattleCanvas.PlayerDisArm();
         return;
     }
     Trans_Shield.gameObject.SetActive(true);
     Trans_Shield.rotation = Quaternion.Euler(new Vector3(0, 0, ShieldAngle));
     BattleCanvas.PlayerShieldRotate();
 }