Skip to content
Snippets Groups Projects
Commit d1c1a096 authored by Graham Solie's avatar Graham Solie
Browse files

Game Resets after you die - game over

parent fa0748f2
No related branches found
No related tags found
No related merge requests found
Showing
with 52 additions and 1 deletion
No preview for this file type
File added
fileFormatVersion: 2
guid: 643aac9167a594b49a2c00955065641f
timeCreated: 1481069214
licenseType: Free
AudioImporter:
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
No preview for this file type
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class RestartGame : MonoBehaviour {
// Use this for initialization
void Start () {
StartCoroutine("waitandload");
}
IEnumerator waitandload() {
//leave time for a death animation and a defeat message, then load the main scene
yield return new WaitForSeconds(5.0f);
SceneManager.LoadScene("Start");
}
}
fileFormatVersion: 2
guid: f3a1e59603bcc954fb7b7e6536ae4378
timeCreated: 1481069298
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
No preview for this file type
No preview for this file type
sceneSetups: sceneSetups:
- path: Assets/Scenes/Start.unity - path: Assets/Scenes/GameOver.unity
isLoaded: 1 isLoaded: 1
isActive: 1 isActive: 1
No preview for this file type
No preview for this file type
File added
File added
File added
File added
File added
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment