// 방어 public void Shield() { if (ShieldLimit <= 0 || !CanShield) { return; } if (ShieldLimit > 0 && CanShield) { CanShield = false; playerShield.SetActive(true); ShieldLimit--; UIM.Shield(); } Invoke("ActivateShield", shieldTimeOut); }
// 방어 public void Shield() { if (ShieldLimit <= 0 || !CanShield) { return; } if (ShieldLimit > 0 && CanShield) { B_SoundManager.instance.PlaySingle(createShield); CanShield = false; playerShield.SetActive(true); ShieldLimit--; UIM.Shield(); } Invoke("ActivateShield", shieldTimeOut); }