Exemplo n.º 1
0
    IEnumerator doConfusion(float time, PlayerMovement playerApi)
    {
        playerApi.setConfusion(true);

        yield return new WaitForSeconds(time);

        playerApi.setConfusion(false);
        Destroy(this);
        Destroy(guiText);
    }