Merge branch 'master' of ooftooft.net:Racesm
# Conflicts: # ProjectSettings/EditorBuildSettings.asset
This commit is contained in:
8
Assets/Scripts/map selector script.meta
Normal file
8
Assets/Scripts/map selector script.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1869669a0d037724891e943f32de3377
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 24c4907dc53064a44a984f3963ff83e7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user