21 lines
386 B
C#
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);
|
|
}
|
|
}
|