Merge branch 'master' of git@ooftooft.net:Racesm.git
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 58f7e79a87c79824597746e8c1bfe400
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f58d25b9e504a4f41ab4a71cf87c1845
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -110,7 +110,7 @@ Transform:
|
||||
m_GameObject: {fileID: 4247588263994262239}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 171.3999}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
@@ -2139,7 +2139,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -240
|
||||
value: -411.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -3003,7 +3003,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 60
|
||||
value: -111.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -3439,7 +3439,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -240
|
||||
value: -411.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -4525,7 +4525,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -30
|
||||
value: -201.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -4871,7 +4871,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 60
|
||||
value: -111.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -5233,7 +5233,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
value: -171.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -6097,7 +6097,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -150
|
||||
value: -321.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -6973,7 +6973,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -90
|
||||
value: -261.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -7035,7 +7035,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -90
|
||||
value: -261.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -7307,7 +7307,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -30
|
||||
value: -201.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -7443,7 +7443,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -180
|
||||
value: -351.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -7579,7 +7579,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -150
|
||||
value: -321.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -10159,7 +10159,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 60
|
||||
value: -111.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -11257,7 +11257,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
value: -171.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -12281,7 +12281,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -180
|
||||
value: -351.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -14837,7 +14837,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -240
|
||||
value: -411.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -15973,7 +15973,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -240
|
||||
value: -411.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -16405,7 +16405,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 60
|
||||
value: -111.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -16615,7 +16615,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -90
|
||||
value: -261.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -17533,7 +17533,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -240
|
||||
value: -411.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -18903,7 +18903,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -240
|
||||
value: -411.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -19397,7 +19397,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 60
|
||||
value: -111.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -19459,7 +19459,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 60
|
||||
value: -111.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
@@ -19669,7 +19669,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -90
|
||||
value: -261.39993
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 43625883235569613, guid: 8e14ccd68551a1a4e93b83808515b996, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -2,19 +2,56 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using Unity.Mathematics;
|
||||
|
||||
public class MapSelectorScript : MonoBehaviour
|
||||
{
|
||||
public GameObject[] Maps;
|
||||
GameObject currentMap;
|
||||
quaternion currentRotation;
|
||||
public GameObject CameraRotator;
|
||||
public int scene;
|
||||
public void change_to_track2(){
|
||||
|
||||
void Start()
|
||||
{
|
||||
DisableAllMaps();
|
||||
SelectMap(0);
|
||||
}
|
||||
private void FixedUpdate()
|
||||
{
|
||||
CameraRotator.transform.eulerAngles += Vector3.up * 0.7f;
|
||||
}
|
||||
|
||||
void DisableAllMaps()
|
||||
{
|
||||
foreach (GameObject map in Maps)
|
||||
{
|
||||
map.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
void SelectMap(int index)
|
||||
{
|
||||
DisableAllMaps();
|
||||
|
||||
currentMap = Maps[index];
|
||||
currentMap.SetActive(true);
|
||||
}
|
||||
|
||||
public void ChangeToTrack2()
|
||||
{
|
||||
scene = 2;
|
||||
SelectMap(0);
|
||||
}
|
||||
|
||||
public void change_to_track3(){
|
||||
public void ChangeToTrack3()
|
||||
{
|
||||
scene = 3;
|
||||
SelectMap(1);
|
||||
}
|
||||
|
||||
public void selectMap(){
|
||||
public void SelectMapAndLoadScene()
|
||||
{
|
||||
SceneManager.LoadScene(scene);
|
||||
}
|
||||
}
|
||||
|
||||
19
Assets/Scripts/map selector script/VisualizeMap.cs
Normal file
19
Assets/Scripts/map selector script/VisualizeMap.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Unity.Mathematics;
|
||||
using UnityEngine;
|
||||
|
||||
public class VisualizeMap : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/map selector script/VisualizeMap.cs.meta
Normal file
11
Assets/Scripts/map selector script/VisualizeMap.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ac4187952aaaa8b488bdebaae221db71
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user