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;
            }
        }
    }
Exemple #2
0
    private IEnumerator loadButton()
    {
        yield return(new WaitForSeconds(EyeCursor.Time()));

        if (EyeCursor.IsFocused())
        {
            EyeCursor.Off();
            SceneManager.LoadScene("Menu");
        }
    }
Exemple #3
0
    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();
        }
    }
Exemple #4
0
    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();
            }
        }
    }
Exemple #6
0
    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();
            }
        }
    }