Files
racesm/Assets/Scripts/map selector script/Map Selector Script.cs
2024-04-24 17:42:39 +02:00

21 lines
386 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class MapSelectorScript : MonoBehaviour
{
public int scene;
public void change_to_track2(){
scene = 2;
}
public void change_to_track3(){
scene = 3;
}
public void selectMap(){
SceneManager.LoadScene(scene);
}
}