Пример #1
0
 public Game_State GetGameState()
 {
     if (GameState.Equals(Game_State.Pause))
     {
         Time.timeScale = 0f * TimeMultipler;
     }
     else if (GameState.Equals(Game_State.Running))
     {
         if (!LevelComplete && !GameManager.Lose)
         {
             Time.timeScale = 1f * TimeMultipler;
         }
     }
     return(GameState);
 }
Пример #2
0
    public void SetGameState(Game_State gameState)
    {
        if (gameState.Equals(Game_State.Pause))
        {
            Time.timeScale = 0f * TimeMultipler;
        }
        else if (gameState.Equals(Game_State.Running))
        {
            if (!LevelComplete && !GameManager.Lose)
            {
                Time.timeScale = 1f * TimeMultipler;
            }
        }

        GameState = gameState;
    }