Map selector (still in progress)
This commit is contained in:
20
Assets/Scripts/map selector script/Map Selector Script.cs
Normal file
20
Assets/Scripts/map selector script/Map Selector Script.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user