so every time i play me block breaker i made it loads to the next scene without a button
code
> using System.Collections;
>
> using System.Collections.Generic;
>
> using UnityEngine;
>
> using UnityEngine.SceneManagement;
>
> public class SceneLoader : MonoBehaviour {
>
> public void LoadNextScene()
>
> {
>
> int currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
>
> SceneManager.LoadScene(currentSceneIndex + 1);
>
> }
>
> public void LoadStartScene()
>
> {
>
> SceneManager.LoadScene(0);
>
> }
>
> public void QuitGame()
>
> {
>
> Application.Quit();
>
> }
>
> }