Beispiel #1
0
        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
        }
Beispiel #2
0
		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);
		}