Browse Source

credits now return to menu

master
Joshua Reason 9 years ago
parent
commit
0b8a556b66
3 changed files with 7 additions and 1 deletions
  1. +7
    -1
      unity_Project/Assets/EndCamera.cs
  2. BIN
      unity_Project/Assets/_Scenes/CreditScreen.unity
  3. BIN
      unity_Project/ProjectSettings/EditorBuildSettings.asset

+ 7
- 1
unity_Project/Assets/EndCamera.cs View File

@ -3,8 +3,8 @@ using System.Collections;
public class EndCamera : MonoBehaviour {
public GameObject camera;
public MonoBehaviour script;
public float waitTime;
// Use this for initialization
void Start () {
@ -19,6 +19,12 @@ public class EndCamera : MonoBehaviour {
void OnTriggerEnter(Collider other) {
if (other.transform.tag == "moveable") {
script.enabled = false;
StartCoroutine(wait());
}
}
IEnumerator wait() {
yield return new WaitForSeconds(waitTime);
Application.LoadLevel ("TitleScreen");
}
}

BIN
unity_Project/Assets/_Scenes/CreditScreen.unity View File


BIN
unity_Project/ProjectSettings/EditorBuildSettings.asset View File


Loading…
Cancel
Save