IEnumerator waitforSec() { animator.enabled = true; animator.Play("launchGame"); yield return(new WaitForSeconds(0.45f)); SceneManagerDontDestroy.LoadScene(); }
IEnumerator waitToLaunchAgain() { yield return(new WaitForSeconds(4f)); SceneManagerDontDestroy.LoadScene(); }