IEnumerator StarAuraProtectionCoroutine(Player playerRef) { if (playerRef) { playerRef.IsPlayerImortal(true); } yield return(new WaitForSeconds(PlayerGlobalStatus.GetShieldAuraCurrentDuration())); if (playerRef) { playerRef.IsPlayerImortal(false); } Destroy(gameObject); }
IEnumerator ShieldAuraDelay() { yield return(new WaitForSeconds(PlayerGlobalStatus.GetShieldAuraCurrentDuration())); canUseShieldAgain = true; }