/*--------------------------------------------------------------------------------------*/ /* */ /* DisableInputTime: Disables input for x seconds */ /* param: float seconds - how many seconds the function waits for */ /* */ /*--------------------------------------------------------------------------------------*/ IEnumerator DiableInputTimer(float seconds) { m_FriendReference.GetComponent <Button> ().enabled = false; disableInput = true; yield return(new WaitForSeconds(seconds)); m_FriendReference.GetComponent <Button> ().enabled = true; disableInput = false; }