IEnumerator doConfusion(float time, PlayerMovement playerApi) { playerApi.setConfusion(true); yield return new WaitForSeconds(time); playerApi.setConfusion(false); Destroy(this); Destroy(guiText); }
IEnumerator doConfusion(float time, PlayerMovement playerApi) { playerApi.setConfusion(true); yield return new WaitForSeconds(time); playerApi.setConfusion(false); Destroy(this); Destroy(guiText); }