Esempio n. 1
0
    private IEnumerator Joke(IInvincible i)
    {
        Debug.Log("Joking");
        yield return(new WaitForSeconds(_jokeTime));

        i.Invincible(ShieldTime);
        StartCoroutine(InvincibleCountdown());
    }
Esempio n. 2
0
    public void Use()
    {
        Debug.Log("SHIELDING");
        Audio.Play();
        IInvincible i = _holder.gameObject.GetComponent <IInvincible>();

        StartCoroutine(Joke(i));
    }