private IEnumerator loadButton(string input, KeyType type) { yield return(new WaitForSeconds(EyeCursor.Time())); if (EyeCursor.IsFocused()) { EyeCursor.Off(); switch (type) { case KeyType.Char: SelectNumber(input); break; case KeyType.Enter: Submit(); break; case KeyType.Delete: Delete(); break; case KeyType.Clear: Clear(); break; } } }
public void MouseExit() { if (!end_game) { EyeCursor.Off(); StopAllCoroutines(); } }
public void MouseExit() { if (dialogIsHidden()) { EyeCursor.Off(); StopAllCoroutines(); } }
private IEnumerator loadButton() { yield return(new WaitForSeconds(EyeCursor.Time())); if (EyeCursor.IsFocused()) { EyeCursor.Off(); SceneManager.LoadScene("Menu"); } }
private IEnumerator loadButton(int i, int j) { yield return(new WaitForSeconds(EyeCursor.Time())); if (EyeCursor.IsFocused()) { EyeCursor.Off(); GameObject obj = board_rows[i].cols[j]; ButtonBoxController(obj).ChangeState(); } }
private IEnumerator loadButton(GameObject button) { yield return(new WaitForSeconds(EyeCursor.Time())); if (EyeCursor.IsFocused()) { EyeCursor.Off(); Text number = button.GetComponentInChildren <Text>(); selectNumber(number.text); } }
private IEnumerator loadButton(GameObject button) { yield return(new WaitForSeconds(EyeCursor.Time())); if (EyeCursor.IsFocused()) { EyeCursor.Off(); if (button.tag == "exit") { ExitGame(); } else if (button.tag == "logout") { UserLogout(); } } }
private IEnumerator loadButton(string scene) { yield return(new WaitForSeconds(EyeCursor.Time())); if (EyeCursor.IsFocused()) { EyeCursor.Off(); if (scene == "MemoryStart") { MemoryController.ClearResult(); } else if (scene == "DexterityGame") { MemoryController.ClearResult(); } SceneManager.LoadScene(scene); } }
private IEnumerator loadButton(string userName) { yield return(new WaitForSeconds(EyeCursor.Time())); if (EyeCursor.IsFocused()) { EyeCursor.Off(); if (userName != null) { User selectedUser = users.Find(x => x.name.ToLower() == userName.ToLower()); if (selectedUser != null) { InsertUserSession(selectedUser.id); SceneManager.LoadScene("Menu"); } } else { AddUser(); } } }
public void MouseExit() { EyeCursor.Off(); StopAllCoroutines(); }