Tanoda
ChangeScene.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4using UnityEngine.SceneManagement;
5
6public class ChangeScene : MonoBehaviour
7{
8 public void LoadScene(int index)
9 {
10 SceneManager.LoadScene(index);
11 }
12
13 public void LoadScene(string scenename)
14 {
15 SceneManager.LoadScene(scenename);
16 }
17}
void LoadScene(int index)
Definition: ChangeScene.cs:8
void LoadScene(string scenename)
Definition: ChangeScene.cs:13