Files
racesm/Assets/Scripts/map selector script/Map Selector Script.cs
PokingPines 06756d418a Map selector
2024-04-25 12:57:44 +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 = 1;
}
public void change_to_track3(){
scene = 2;
}
public void selectMap(){
SceneManager.LoadScene(scene);
}
}