Alpha commit

This commit is contained in:
Elias Virta
2020-04-30 00:04:48 +03:00
parent b299afc245
commit dc95ad3746
92 changed files with 19094 additions and 173 deletions

View File

@ -9,12 +9,20 @@ public class ChangeScene : MonoBehaviour
// Start is called before the first frame update
void Start()
{
StartCoroutine(ChangeSceneToGame());
if(SceneManager.GetActiveScene().buildIndex == 1)
{
StartCoroutine(ChangeSceneToGame(2));
}
if(SceneManager.GetActiveScene().buildIndex == 3)
{
StartCoroutine(ChangeSceneToGame(0));
}
}
private IEnumerator ChangeSceneToGame()
private IEnumerator ChangeSceneToGame(int index)
{
yield return new WaitForSeconds(5);
SceneManager.LoadScene(2);
SceneManager.LoadScene(index);
}
}