private void setState(GameState newState)
 {
     Debug.Log("Set gamestate");
     if (newState == GameState.MainMenu)
     {
         currentstate = newState;
         sceneLoader.LoadMenuScene();
     }
     else if (newState == GameState.Selection)
     {
         currentstate = newState;
         sceneLoader.LoadAbilityScene();
     }
     else if (newState == GameState.GameCycle)
     {
         currentstate = newState;
         Debug.Log("state:" + currentstate + " gamestate should be " + GameState.GameCycle);
         sceneLoader.LoadGameScene();
     }
     else if (currentstate == GameState.GameCycle && newState == GameState.GameOver)
     {
         currentstate = newState;
         uiM          = GameObject.Find("/UIManager").GetComponent <UIManagerScript>();
         uiM.setStateHUD(newState.ToString());
         gameEndingDisplaying = Time.unscaledTime + gameEndingDisplayTime;
         Time.timeScale       = 0;
     }
     else if (currentstate == GameState.GameCycle && newState == GameState.GameWon)
     {
         currentstate = newState;
         uiM          = GameObject.Find("/UIManager").GetComponent <UIManagerScript>();
         uiM.setStateHUD(newState.ToString());
         gameEndingDisplaying = Time.unscaledTime + gameEndingDisplayTime;
         Time.timeScale       = 0;
     }
 }
 public void Continue()
 {
     SceneLoader.LoadMenuScene();
 }