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

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

        StartCoroutine(Joke(i));
    }