private IEnumerator Joke(IInvincible i) { Debug.Log("Joking"); yield return(new WaitForSeconds(_jokeTime)); i.Invincible(ShieldTime); StartCoroutine(InvincibleCountdown()); }
public void Use() { Debug.Log("SHIELDING"); Audio.Play(); IInvincible i = _holder.gameObject.GetComponent <IInvincible>(); StartCoroutine(Joke(i)); }