public override void ShieldBeSruck(int _dmg) { base.ShieldBeSruck(_dmg); ShieldLevel -= 1; if (ShieldLevel < 1) { ShieldLevel = 0; Trans_Shield.gameObject.SetActive(false); BattleCanvas.PlayerDisArm(); } }
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(); }