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); }
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; }