Ejemplo n.º 1
0
    void Update()
    {
        switch (wordManager.GetTypingGameState())
        {
        case BetaTypingManager.TypingGameState.PreGame:
            if (Input.anyKeyDown)
            {
                wordManager.PlaysGame();
            }
            break;

        case BetaTypingManager.TypingGameState.Playing:
            if (playerManager.HasAlive())
            {
                if (Input.GetKeyDown(KeyCode.Space))
                {
                    if (playerManager.CanUseUltimateSkill())
                    {
                        playerManager.UseUlitmateSkill();
                    }
                }
                else
                {
                    if (wordManager.mainWordlist.Count > 0)
                    {
                        foreach (char letter in Input.inputString)
                        {
                            wordManager.TypeLetterManager(letter);
                        }
                    }
                }
            }
            break;
        }
    }
Ejemplo n.º 2
0
    private void OnBetaTypingTimerUpdateHandler()
    {
        switch (typingGameManager.GetTypingGameState())
        {
        case BetaTypingManager.TypingGameState.PreGame:
            SetTimeCountTime();
            break;

        case BetaTypingManager.TypingGameState.Playing:
            SetTimeFillBar();
            break;
        }
    }