public static void pause() { if (turnState != Turn.pause) { holdTurn = turnState; turnState = Turn.pause; Time.timeScale = 0; Time.fixedDeltaTime = 0; GameDriver.PauseCubes(); GameDriver.showMenuInterface(); } else { print("Can't pause, game is already paused!"); } }