more plats
This commit is contained in:
parent
ea9672939a
commit
e341b39876
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"visualstudiotoolsforunity.vstuc"
|
||||||
|
]
|
||||||
|
}
|
||||||
10
.vscode/launch.json
vendored
Normal file
10
.vscode/launch.json
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Attach to Unity",
|
||||||
|
"type": "vstuc",
|
||||||
|
"request": "attach"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
106
.vscode/settings.json
vendored
106
.vscode/settings.json
vendored
|
|
@ -1,56 +1,56 @@
|
||||||
{
|
{
|
||||||
"files.exclude":
|
"files.exclude": {
|
||||||
{
|
"**/.DS_Store": true,
|
||||||
"**/.DS_Store":true,
|
"**/.git": true,
|
||||||
"**/.git":true,
|
"**/.gitmodules": true,
|
||||||
"**/.gitmodules":true,
|
"**/*.booproj": true,
|
||||||
"**/*.booproj":true,
|
"**/*.pidb": true,
|
||||||
"**/*.pidb":true,
|
"**/*.suo": true,
|
||||||
"**/*.suo":true,
|
"**/*.user": true,
|
||||||
"**/*.user":true,
|
"**/*.userprefs": true,
|
||||||
"**/*.userprefs":true,
|
"**/*.unityproj": true,
|
||||||
"**/*.unityproj":true,
|
"**/*.dll": true,
|
||||||
"**/*.dll":true,
|
"**/*.exe": true,
|
||||||
"**/*.exe":true,
|
"**/*.pdf": true,
|
||||||
"**/*.pdf":true,
|
"**/*.mid": true,
|
||||||
"**/*.mid":true,
|
"**/*.midi": true,
|
||||||
"**/*.midi":true,
|
"**/*.wav": true,
|
||||||
"**/*.wav":true,
|
"**/*.gif": true,
|
||||||
"**/*.gif":true,
|
"**/*.ico": true,
|
||||||
"**/*.ico":true,
|
"**/*.jpg": true,
|
||||||
"**/*.jpg":true,
|
"**/*.jpeg": true,
|
||||||
"**/*.jpeg":true,
|
"**/*.png": true,
|
||||||
"**/*.png":true,
|
"**/*.psd": true,
|
||||||
"**/*.psd":true,
|
"**/*.tga": true,
|
||||||
"**/*.tga":true,
|
"**/*.tif": true,
|
||||||
"**/*.tif":true,
|
"**/*.tiff": true,
|
||||||
"**/*.tiff":true,
|
"**/*.3ds": true,
|
||||||
"**/*.3ds":true,
|
"**/*.3DS": true,
|
||||||
"**/*.3DS":true,
|
"**/*.fbx": true,
|
||||||
"**/*.fbx":true,
|
"**/*.FBX": true,
|
||||||
"**/*.FBX":true,
|
"**/*.lxo": true,
|
||||||
"**/*.lxo":true,
|
"**/*.LXO": true,
|
||||||
"**/*.LXO":true,
|
"**/*.ma": true,
|
||||||
"**/*.ma":true,
|
"**/*.MA": true,
|
||||||
"**/*.MA":true,
|
"**/*.obj": true,
|
||||||
"**/*.obj":true,
|
"**/*.OBJ": true,
|
||||||
"**/*.OBJ":true,
|
"**/*.asset": true,
|
||||||
"**/*.asset":true,
|
"**/*.cubemap": true,
|
||||||
"**/*.cubemap":true,
|
"**/*.flare": true,
|
||||||
"**/*.flare":true,
|
"**/*.mat": true,
|
||||||
"**/*.mat":true,
|
"**/*.meta": true,
|
||||||
"**/*.meta":true,
|
"**/*.prefab": true,
|
||||||
"**/*.prefab":true,
|
"**/*.unity": true,
|
||||||
"**/*.unity":true,
|
"build/": true,
|
||||||
"build/":true,
|
"Build/": true,
|
||||||
"Build/":true,
|
"Library/": true,
|
||||||
"Library/":true,
|
"library/": true,
|
||||||
"library/":true,
|
"obj/": true,
|
||||||
"obj/":true,
|
"Obj/": true,
|
||||||
"Obj/":true,
|
"ProjectSettings/": true,
|
||||||
"ProjectSettings/":true,
|
"temp/": true,
|
||||||
"temp/":true,
|
"Temp/": true
|
||||||
"Temp/":true
|
|
||||||
},
|
},
|
||||||
"dotnet.preferCSharpExtension": true
|
"dotnet.preferCSharpExtension": true,
|
||||||
|
"dotnet.defaultSolution": "neon_run.sln"
|
||||||
}
|
}
|
||||||
|
|
@ -24,7 +24,7 @@ public class GameManager : MonoBehaviour
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
void Update()
|
void FixedUpdate()
|
||||||
{
|
{
|
||||||
float input = Input.GetAxis("Vertical");
|
float input = Input.GetAxis("Vertical");
|
||||||
movespeed += input * acceleration * Time.deltaTime;
|
movespeed += input * acceleration * Time.deltaTime;
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ RenderSettings:
|
||||||
m_ReflectionIntensity: 1
|
m_ReflectionIntensity: 1
|
||||||
m_CustomReflection: {fileID: 0}
|
m_CustomReflection: {fileID: 0}
|
||||||
m_Sun: {fileID: 0}
|
m_Sun: {fileID: 0}
|
||||||
m_IndirectSpecularColor: {r: 0.40509024, g: 0.10189833, b: 0.7762195, a: 1}
|
m_IndirectSpecularColor: {r: 0.4001094, g: 0.09552942, b: 0.77456146, a: 1}
|
||||||
m_UseRadianceAmbientProbe: 0
|
m_UseRadianceAmbientProbe: 0
|
||||||
--- !u!157 &3
|
--- !u!157 &3
|
||||||
LightmapSettings:
|
LightmapSettings:
|
||||||
|
|
@ -620,7 +620,7 @@ Camera:
|
||||||
width: 1
|
width: 1
|
||||||
height: 1
|
height: 1
|
||||||
near clip plane: 0.3
|
near clip plane: 0.3
|
||||||
far clip plane: 1000
|
far clip plane: 600
|
||||||
field of view: 53.6
|
field of view: 53.6
|
||||||
orthographic: 0
|
orthographic: 0
|
||||||
orthographic size: 5
|
orthographic size: 5
|
||||||
|
|
@ -1501,12 +1501,12 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_UiScaleMode: 0
|
m_UiScaleMode: 1
|
||||||
m_ReferencePixelsPerUnit: 100
|
m_ReferencePixelsPerUnit: 100
|
||||||
m_ScaleFactor: 1
|
m_ScaleFactor: 1
|
||||||
m_ReferenceResolution: {x: 800, y: 600}
|
m_ReferenceResolution: {x: 1000, y: 562.5}
|
||||||
m_ScreenMatchMode: 0
|
m_ScreenMatchMode: 0
|
||||||
m_MatchWidthOrHeight: 0
|
m_MatchWidthOrHeight: 0.5
|
||||||
m_PhysicalUnit: 3
|
m_PhysicalUnit: 3
|
||||||
m_FallbackScreenDPI: 96
|
m_FallbackScreenDPI: 96
|
||||||
m_DefaultSpriteDPI: 96
|
m_DefaultSpriteDPI: 96
|
||||||
|
|
@ -1634,11 +1634,11 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 25973655c6700c72bba96cc62e9d7817, type: 3}
|
m_Script: {fileID: 11500000, guid: 25973655c6700c72bba96cc62e9d7817, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
acceleration: 2
|
acceleration: 4
|
||||||
maxspeed: 30
|
maxspeed: 30
|
||||||
came: {fileID: 330585545}
|
came: {fileID: 330585545}
|
||||||
minFov: 50
|
minFov: 45
|
||||||
maxFov: 70
|
maxFov: 73
|
||||||
Distance: 0
|
Distance: 0
|
||||||
txtSpeed: {fileID: 773073356}
|
txtSpeed: {fileID: 773073356}
|
||||||
txtDistance: {fileID: 1721910756}
|
txtDistance: {fileID: 1721910756}
|
||||||
|
|
@ -2233,7 +2233,7 @@ PrefabInstance:
|
||||||
- target: {fileID: 7163100787474200811, guid: 2ec69c05c0913d1b19d2df80ea44d31c,
|
- target: {fileID: 7163100787474200811, guid: 2ec69c05c0913d1b19d2df80ea44d31c,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: 0
|
value: 61.15
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 7163100787474200811, guid: 2ec69c05c0913d1b19d2df80ea44d31c,
|
- target: {fileID: 7163100787474200811, guid: 2ec69c05c0913d1b19d2df80ea44d31c,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,32 @@ using UnityEngine;
|
||||||
|
|
||||||
public class SectionTriger : MonoBehaviour
|
public class SectionTriger : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
public static int counter =0;
|
||||||
public GameObject[] roadSection;
|
public GameObject[] roadSection;
|
||||||
|
|
||||||
public float speed = -100f;
|
public float speed = -100f;
|
||||||
|
|
||||||
|
int headroom = 5;
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
if(counter ==0){
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void OnTriggerEnter(Collider other)
|
private void OnTriggerEnter(Collider other)
|
||||||
{
|
{
|
||||||
if (other.gameObject.CompareTag("Trigger"))
|
if (other.gameObject.CompareTag("Trigger"))
|
||||||
{
|
{
|
||||||
int randomNumber = Random.Range(0, roadSection.Length);
|
int randomNumber = Random.Range(0, roadSection.Length);
|
||||||
Instantiate(roadSection[randomNumber], new Vector3(0, 0, other.transform.position.z + speed), Quaternion.identity);
|
if(counter == 0){
|
||||||
|
for(int i=0; i < headroom; i++){
|
||||||
|
Instantiate(roadSection[Random.Range(0, roadSection.Length)], new Vector3(0, 0, other.transform.position.z + (speed * (i+1))), Quaternion.identity);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Instantiate(roadSection[randomNumber], new Vector3(0, 0, other.transform.position.z + (speed * (headroom+1))), Quaternion.identity);
|
||||||
|
counter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,21 +51,6 @@ MonoBehaviour:
|
||||||
debugReplacementPS: {fileID: 4800000, guid: cf852408f2e174538bcd9b7fda1c5ae7,
|
debugReplacementPS: {fileID: 4800000, guid: cf852408f2e174538bcd9b7fda1c5ae7,
|
||||||
type: 3}
|
type: 3}
|
||||||
hdrDebugViewPS: {fileID: 4800000, guid: 573620ae32aec764abd4d728906d2587, type: 3}
|
hdrDebugViewPS: {fileID: 4800000, guid: 573620ae32aec764abd4d728906d2587, type: 3}
|
||||||
probeVolumeSamplingDebugComputeShader: {fileID: 7200000, guid: 53626a513ea68ce47b59dc1299fe3959,
|
|
||||||
type: 3}
|
|
||||||
probeVolumeResources:
|
|
||||||
probeVolumeDebugShader: {fileID: 4800000, guid: e5c6678ed2aaa91408dd3df699057aae,
|
|
||||||
type: 3}
|
|
||||||
probeVolumeFragmentationDebugShader: {fileID: 4800000, guid: 03cfc4915c15d504a9ed85ecc404e607,
|
|
||||||
type: 3}
|
|
||||||
probeVolumeOffsetDebugShader: {fileID: 4800000, guid: 53a11f4ebaebf4049b3638ef78dc9664,
|
|
||||||
type: 3}
|
|
||||||
probeVolumeSamplingDebugShader: {fileID: 4800000, guid: 8f96cd657dc40064aa21efcc7e50a2e7,
|
|
||||||
type: 3}
|
|
||||||
probeSamplingDebugMesh: {fileID: -3555484719484374845, guid: 57d7c4c16e2765b47a4d2069b311bffe,
|
|
||||||
type: 3}
|
|
||||||
probeSamplingDebugTexture: {fileID: 2800000, guid: 24ec0e140fb444a44ab96ee80844e18e,
|
|
||||||
type: 3}
|
|
||||||
m_RendererFeatures:
|
m_RendererFeatures:
|
||||||
- {fileID: -1878332245247344467}
|
- {fileID: -1878332245247344467}
|
||||||
m_RendererFeatureMap: adc0de57c6d2eee5
|
m_RendererFeatureMap: adc0de57c6d2eee5
|
||||||
|
|
@ -87,7 +72,7 @@ MonoBehaviour:
|
||||||
blitHDROverlay: {fileID: 4800000, guid: a89bee29cffa951418fc1e2da94d1959, type: 3}
|
blitHDROverlay: {fileID: 4800000, guid: a89bee29cffa951418fc1e2da94d1959, type: 3}
|
||||||
cameraMotionVector: {fileID: 4800000, guid: c56b7e0d4c7cb484e959caeeedae9bbf,
|
cameraMotionVector: {fileID: 4800000, guid: c56b7e0d4c7cb484e959caeeedae9bbf,
|
||||||
type: 3}
|
type: 3}
|
||||||
screenSpaceLensFlare: {fileID: 4800000, guid: 701880fecb344ea4c9cd0db3407ab287,
|
objectMotionVector: {fileID: 4800000, guid: 7b3ede40266cd49a395def176e1bc486,
|
||||||
type: 3}
|
type: 3}
|
||||||
dataDrivenLensFlare: {fileID: 4800000, guid: 6cda457ac28612740adb23da5d39ea92,
|
dataDrivenLensFlare: {fileID: 4800000, guid: 6cda457ac28612740adb23da5d39ea92,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"com.boxqkrtm.ide.cursor": "https://github.com/boxqkrtm/com.unity.ide.cursor.git",
|
||||||
"com.unity.collab-proxy": "2.9.3",
|
"com.unity.collab-proxy": "2.9.3",
|
||||||
"com.unity.ide.rider": "3.0.37",
|
"com.unity.ide.rider": "3.0.37",
|
||||||
"com.unity.ide.visualstudio": "2.0.18",
|
"com.unity.ide.visualstudio": "2.0.18",
|
||||||
|
|
@ -9,6 +10,7 @@
|
||||||
"com.unity.test-framework": "1.1.33",
|
"com.unity.test-framework": "1.1.33",
|
||||||
"com.unity.textmeshpro": "3.0.6",
|
"com.unity.textmeshpro": "3.0.6",
|
||||||
"com.unity.timeline": "1.7.5",
|
"com.unity.timeline": "1.7.5",
|
||||||
|
"com.unity.toolchain.win-x86_64-linux-x86_64": "2.0.10",
|
||||||
"com.unity.ugui": "1.0.0",
|
"com.unity.ugui": "1.0.0",
|
||||||
"com.unity.visualscripting": "1.9.0",
|
"com.unity.visualscripting": "1.9.0",
|
||||||
"com.unity.modules.ai": "1.0.0",
|
"com.unity.modules.ai": "1.0.0",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,14 @@
|
||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"com.boxqkrtm.ide.cursor": {
|
||||||
|
"version": "https://github.com/boxqkrtm/com.unity.ide.cursor.git",
|
||||||
|
"depth": 0,
|
||||||
|
"source": "git",
|
||||||
|
"dependencies": {
|
||||||
|
"com.unity.test-framework": "1.1.9"
|
||||||
|
},
|
||||||
|
"hash": "38fecf55e4fd94ccfe58a92ed8ad1a529ba1694e"
|
||||||
|
},
|
||||||
"com.unity.burst": {
|
"com.unity.burst": {
|
||||||
"version": "1.8.8",
|
"version": "1.8.8",
|
||||||
"depth": 1,
|
"depth": 1,
|
||||||
|
|
@ -102,6 +111,22 @@
|
||||||
"com.unity.searcher": "4.9.2"
|
"com.unity.searcher": "4.9.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"com.unity.sysroot": {
|
||||||
|
"version": "2.0.10",
|
||||||
|
"depth": 1,
|
||||||
|
"source": "registry",
|
||||||
|
"dependencies": {},
|
||||||
|
"url": "https://packages.unity.com"
|
||||||
|
},
|
||||||
|
"com.unity.sysroot.linux-x86_64": {
|
||||||
|
"version": "2.0.9",
|
||||||
|
"depth": 1,
|
||||||
|
"source": "registry",
|
||||||
|
"dependencies": {
|
||||||
|
"com.unity.sysroot": "2.0.10"
|
||||||
|
},
|
||||||
|
"url": "https://packages.unity.com"
|
||||||
|
},
|
||||||
"com.unity.test-framework": {
|
"com.unity.test-framework": {
|
||||||
"version": "1.1.33",
|
"version": "1.1.33",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
|
|
@ -134,6 +159,16 @@
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
|
"com.unity.toolchain.win-x86_64-linux-x86_64": {
|
||||||
|
"version": "2.0.10",
|
||||||
|
"depth": 0,
|
||||||
|
"source": "registry",
|
||||||
|
"dependencies": {
|
||||||
|
"com.unity.sysroot": "2.0.10",
|
||||||
|
"com.unity.sysroot.linux-x86_64": "2.0.9"
|
||||||
|
},
|
||||||
|
"url": "https://packages.unity.com"
|
||||||
|
},
|
||||||
"com.unity.ugui": {
|
"com.unity.ugui": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user