It is an on click button to change to the next scene.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Pressstart : MonoBehaviour {
public void PressStart(string CharacterSelect)
{
SceneManager.LoadScene(CharacterSelect);
}
}
Why not use a coroutine for this?
Something like this…
public class Pressstart : MonoBehaviour {
public void PressStart(string CharacterSelect)
{
StartCoroutine(LaunchScene(CharacterSelect));
}
IEnumerator LaunchScene(string CharacterSelect){
yield return new WaitForSeconds(5f);
SceneManager.LoadScene(CharacterSelect);
}
}
This would load the scene 5 seconds after pressing the button. Just change the 5f to whatever delay amount you want.
Hope this helps,
-Larry