private IEnumerator KeyClickCoroutine(KeyCode keycode) { return(CoHoExtensions.Co_DoWhen(() => { return Input.GetKey(keycode); }, () => { Debug.Log("we pressed " + keycode); })); }
private IEnumerator MouseClickCoroutine(int mouseButton) { return(CoHoExtensions.Co_DoWhen(() => { return Input.GetMouseButton(mouseButton); }, () => { Debug.Log("we pressed mouse " + mouseButton); })); }