示例#1
0
    private void nextMove()
    {
        gameState.moveState = MoveState.WAITING;
        int difficulty = PlayerPrefs.GetInt("Difficulty");

        gameState.currentMove = MoveTypeHelper.randomMove(gameState.currentMove, difficulty);
    }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     if (gameState.moveState == MoveState.CORRECT)
     {
         GetComponent <TextMeshProUGUI>().text = "";
     }
     if (gameState.moveState == MoveState.WAITING)
     {
         GetComponent <TextMeshProUGUI>().text = MoveTypeHelper.MoveTypeToString(gameState.currentMove, leftMove);
     }
 }