Beispiel #1
0
    private IEnumerator ReturnEvent()
    {
        while (true)
        {
            yield return(new WaitForSeconds(5f)); // wait half a second

            SceneTraversal.LoadStart();
        }
    }
Beispiel #2
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Alpha1))
        {
            LoadMain();
        }

        if (Input.GetKeyDown(KeyCode.Alpha2))
        {
            SceneTraversal.LoadStart();
        }

        if (Input.GetKeyDown(KeyCode.Alpha3))
        {
            SceneTraversal.LoadCredits();
        }
    }