void OnInput(InputManager.types type) { switch (type) { case InputManager.types.SWIPE_RIGHT: SwipeRight(); break; case InputManager.types.SWIPE_LEFT: SwipeLeft(); break; case InputManager.types.GATILLO_DOWN: if (!PersistentData.Instance.langSelected) { WaitForLanguage(); } else { StartCoroutine(Done()); } break; case InputManager.types.PAD_HOLD: Reset(); break; } }
void OnInput(InputManager.types type) { if (isDone) { return; } switch (type) { case InputManager.types.SWIPE_RIGHT: SwipeRight(); break; case InputManager.types.SWIPE_LEFT: SwipeLeft(); break; case InputManager.types.GATILLO_DOWN: if (timer > 4) { StartCoroutine(Done()); } break; } }