public void Puase(float puaseLangth = -666) { // turns off all physics time Time.timeScale = 0f; GameUI.SetPanal(true); if (puaseLangth > 0) { pauseEnd = Time.realtimeSinceStartup + puaseLangth; GameUI.setCountDown(puaseLangth, true); curMode = new modeUpdate(CountDownPuase); } else { curMode = new modeUpdate(PuaseUpdate); } }