IEnumerator _GameOver() { StartCoroutine(ScreenShake.Shake(theGame, 0.10f)); while (ScreenShake.isShaking) { yield return(0); } #if UNITY_5_3 SceneManager.LoadScene(0); #else Application.LoadLevel(Application.loadedLevel); #endif }
IEnumerator _GameOver() { StartCoroutine(ScreenShake.Shake(theGame, 0.10f)); while (ScreenShake.isShaking) { yield return 0; } State.Lives--; if (State.Lives > 0) ShowContinueWindow(true); else ShowGameOverWindow(true); }