second iter
This commit is contained in:
26
Assets/Scripts/loadGameAftexsecs.cs
Normal file
26
Assets/Scripts/loadGameAftexsecs.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class loadGameAftexsecs : MonoBehaviour
|
||||
{
|
||||
public int secondsToWait = 5;
|
||||
// Start is called before the first frame update
|
||||
IEnumerator Startx()
|
||||
{
|
||||
yield return new WaitForSeconds(secondsToWait);
|
||||
SceneManager.LoadScene("Game");
|
||||
}
|
||||
void Start()
|
||||
{
|
||||
//start coroutine
|
||||
StartCoroutine(Startx());
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user