using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class Credits : MonoBehaviour { public float elapsedTime; public float creditsDuration; // Update is called once per frame void Update () { elapsedTime = elapsedTime + Time.deltaTime; if (elapsedTime >= creditsDuration) { SceneManager.LoadScene("InterStage",LoadSceneMode.Single); } if (Input.anyKey) { SceneManager.LoadScene("InterStage", LoadSceneMode.Single); } } }