summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-12-08 01:02:01 -0500
committerrealtradam <[email protected]>2022-12-08 01:02:01 -0500
commitdd9ee2fabc55b99543a9aff4a6c27263902370bb (patch)
tree388f7ba2ab3860a1006bbef500f5d873a0b03079
parent6c3569682f9ada8a5f36c073c9a481818f480571 (diff)
downloadMagnet-Run-3D-dd9ee2fabc55b99543a9aff4a6c27263902370bb.tar.gz
Magnet-Run-3D-dd9ee2fabc55b99543a9aff4a6c27263902370bb.zip
implement basic physics
-rw-r--r--Assets/Materials.meta (renamed from Assets/TutorialInfo.meta)2
-rw-r--r--Assets/Materials/Ball.mat126
-rw-r--r--Assets/Materials/Ball.mat.meta (renamed from Assets/Readme.asset.meta)4
-rw-r--r--Assets/Materials/Ground.mat126
-rw-r--r--Assets/Materials/Ground.mat.meta8
-rw-r--r--Assets/Materials/Trail.mat126
-rw-r--r--Assets/Materials/Trail.mat.meta8
-rw-r--r--Assets/Readme.asset34
-rw-r--r--Assets/Scripts.meta (renamed from Assets/TutorialInfo/Scripts.meta)5
-rw-r--r--Assets/Scripts/MovingSphere.cs68
-rw-r--r--Assets/Scripts/MovingSphere.cs.meta (renamed from Assets/TutorialInfo/Scripts/Editor/ReadmeEditor.cs.meta)5
-rw-r--r--Assets/Settings/URP-HighFidelity-Renderer.asset3
-rw-r--r--Assets/TutorialInfo/Icons.meta9
-rw-r--r--Assets/TutorialInfo/Layout.wlt654
-rw-r--r--Assets/TutorialInfo/Layout.wlt.meta8
-rw-r--r--Assets/TutorialInfo/Scripts/Editor.meta9
-rw-r--r--Assets/TutorialInfo/Scripts/Editor/ReadmeEditor.cs242
-rw-r--r--Assets/TutorialInfo/Scripts/Readme.cs16
-rw-r--r--Assets/TutorialInfo/Scripts/Readme.cs.meta12
19 files changed, 472 insertions, 993 deletions
diff --git a/Assets/TutorialInfo.meta b/Assets/Materials.meta
index a700bca..8c48044 100644
--- a/Assets/TutorialInfo.meta
+++ b/Assets/Materials.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: ba062aa6c92b140379dbc06b43dd3b9b
+guid: b7763ec5b9726986db0e3c84271537da
folderAsset: yes
DefaultImporter:
externalObjects: {}
diff --git a/Assets/Materials/Ball.mat b/Assets/Materials/Ball.mat
new file mode 100644
index 0000000..05de71f
--- /dev/null
+++ b/Assets/Materials/Ball.mat
@@ -0,0 +1,126 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+ serializedVersion: 8
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_Name: Ball
+ m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
+ m_ValidKeywords: []
+ m_InvalidKeywords: []
+ m_LightmapFlags: 4
+ m_EnableInstancingVariants: 0
+ m_DoubleSidedGI: 0
+ m_CustomRenderQueue: -1
+ stringTagMap:
+ RenderType: Opaque
+ disabledShaderPasses: []
+ m_SavedProperties:
+ serializedVersion: 3
+ m_TexEnvs:
+ - _BaseMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _BumpMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailAlbedoMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailMask:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailNormalMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _EmissionMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _MainTex:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _MetallicGlossMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _OcclusionMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _ParallaxMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _SpecGlossMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - unity_Lightmaps:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - unity_LightmapsInd:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - unity_ShadowMasks:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ m_Ints: []
+ m_Floats:
+ - _AlphaClip: 0
+ - _Blend: 0
+ - _BumpScale: 1
+ - _ClearCoatMask: 0
+ - _ClearCoatSmoothness: 0
+ - _Cull: 2
+ - _Cutoff: 0.5
+ - _DetailAlbedoMapScale: 1
+ - _DetailNormalMapScale: 1
+ - _DstBlend: 0
+ - _EnvironmentReflections: 1
+ - _GlossMapScale: 0
+ - _Glossiness: 0
+ - _GlossyReflections: 0
+ - _Metallic: 0
+ - _OcclusionStrength: 1
+ - _Parallax: 0.005
+ - _QueueOffset: 0
+ - _ReceiveShadows: 1
+ - _Smoothness: 0.5
+ - _SmoothnessTextureChannel: 0
+ - _SpecularHighlights: 1
+ - _SrcBlend: 1
+ - _Surface: 0
+ - _WorkflowMode: 1
+ - _ZWrite: 1
+ m_Colors:
+ - _BaseColor: {r: 0.80882215, g: 0, b: 1, a: 1}
+ - _Color: {r: 0.80882215, g: 0, b: 1, a: 1}
+ - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
+ - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
+ m_BuildTextureStacks: []
+--- !u!114 &2161391329622597023
+MonoBehaviour:
+ m_ObjectHideFlags: 11
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 0}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ version: 5
diff --git a/Assets/Readme.asset.meta b/Assets/Materials/Ball.mat.meta
index ab3ad45..a646684 100644
--- a/Assets/Readme.asset.meta
+++ b/Assets/Materials/Ball.mat.meta
@@ -1,8 +1,8 @@
fileFormatVersion: 2
-guid: 8105016687592461f977c054a80ce2f2
+guid: 437fcdb2fb668650ba833e5c28f3de70
NativeFormatImporter:
externalObjects: {}
- mainObjectFileID: 0
+ mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
diff --git a/Assets/Materials/Ground.mat b/Assets/Materials/Ground.mat
new file mode 100644
index 0000000..8591274
--- /dev/null
+++ b/Assets/Materials/Ground.mat
@@ -0,0 +1,126 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+ serializedVersion: 8
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_Name: Ground
+ m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
+ m_ValidKeywords: []
+ m_InvalidKeywords: []
+ m_LightmapFlags: 4
+ m_EnableInstancingVariants: 0
+ m_DoubleSidedGI: 0
+ m_CustomRenderQueue: -1
+ stringTagMap:
+ RenderType: Opaque
+ disabledShaderPasses: []
+ m_SavedProperties:
+ serializedVersion: 3
+ m_TexEnvs:
+ - _BaseMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _BumpMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailAlbedoMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailMask:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailNormalMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _EmissionMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _MainTex:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _MetallicGlossMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _OcclusionMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _ParallaxMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _SpecGlossMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - unity_Lightmaps:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - unity_LightmapsInd:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - unity_ShadowMasks:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ m_Ints: []
+ m_Floats:
+ - _AlphaClip: 0
+ - _Blend: 0
+ - _BumpScale: 1
+ - _ClearCoatMask: 0
+ - _ClearCoatSmoothness: 0
+ - _Cull: 2
+ - _Cutoff: 0.5
+ - _DetailAlbedoMapScale: 1
+ - _DetailNormalMapScale: 1
+ - _DstBlend: 0
+ - _EnvironmentReflections: 1
+ - _GlossMapScale: 0
+ - _Glossiness: 0
+ - _GlossyReflections: 0
+ - _Metallic: 0
+ - _OcclusionStrength: 1
+ - _Parallax: 0.005
+ - _QueueOffset: 0
+ - _ReceiveShadows: 1
+ - _Smoothness: 0.5
+ - _SmoothnessTextureChannel: 0
+ - _SpecularHighlights: 1
+ - _SrcBlend: 1
+ - _Surface: 0
+ - _WorkflowMode: 1
+ - _ZWrite: 1
+ m_Colors:
+ - _BaseColor: {r: 0.27252227, g: 0.8207547, b: 0.21293166, a: 1}
+ - _Color: {r: 0.27252224, g: 0.8207547, b: 0.21293163, a: 1}
+ - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
+ - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
+ m_BuildTextureStacks: []
+--- !u!114 &6023568005551891968
+MonoBehaviour:
+ m_ObjectHideFlags: 11
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 0}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ version: 5
diff --git a/Assets/Materials/Ground.mat.meta b/Assets/Materials/Ground.mat.meta
new file mode 100644
index 0000000..1225c94
--- /dev/null
+++ b/Assets/Materials/Ground.mat.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: f96823e3dbfe77845941312d9909b91b
+NativeFormatImporter:
+ externalObjects: {}
+ mainObjectFileID: 2100000
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Materials/Trail.mat b/Assets/Materials/Trail.mat
new file mode 100644
index 0000000..2bb3855
--- /dev/null
+++ b/Assets/Materials/Trail.mat
@@ -0,0 +1,126 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+ serializedVersion: 8
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_Name: Trail
+ m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
+ m_ValidKeywords: []
+ m_InvalidKeywords: []
+ m_LightmapFlags: 4
+ m_EnableInstancingVariants: 0
+ m_DoubleSidedGI: 0
+ m_CustomRenderQueue: -1
+ stringTagMap:
+ RenderType: Opaque
+ disabledShaderPasses: []
+ m_SavedProperties:
+ serializedVersion: 3
+ m_TexEnvs:
+ - _BaseMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _BumpMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailAlbedoMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailMask:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailNormalMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _EmissionMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _MainTex:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _MetallicGlossMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _OcclusionMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _ParallaxMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _SpecGlossMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - unity_Lightmaps:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - unity_LightmapsInd:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - unity_ShadowMasks:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ m_Ints: []
+ m_Floats:
+ - _AlphaClip: 0
+ - _Blend: 0
+ - _BumpScale: 1
+ - _ClearCoatMask: 0
+ - _ClearCoatSmoothness: 0
+ - _Cull: 2
+ - _Cutoff: 0.5
+ - _DetailAlbedoMapScale: 1
+ - _DetailNormalMapScale: 1
+ - _DstBlend: 0
+ - _EnvironmentReflections: 1
+ - _GlossMapScale: 0
+ - _Glossiness: 0
+ - _GlossyReflections: 0
+ - _Metallic: 0
+ - _OcclusionStrength: 1
+ - _Parallax: 0.005
+ - _QueueOffset: 0
+ - _ReceiveShadows: 1
+ - _Smoothness: 0.5
+ - _SmoothnessTextureChannel: 0
+ - _SpecularHighlights: 1
+ - _SrcBlend: 1
+ - _Surface: 0
+ - _WorkflowMode: 1
+ - _ZWrite: 1
+ m_Colors:
+ - _BaseColor: {r: 1, g: 1, b: 1, a: 1}
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
+ - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
+ - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
+ m_BuildTextureStacks: []
+--- !u!114 &1401421998434680226
+MonoBehaviour:
+ m_ObjectHideFlags: 11
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 0}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ version: 5
diff --git a/Assets/Materials/Trail.mat.meta b/Assets/Materials/Trail.mat.meta
new file mode 100644
index 0000000..8c9efb0
--- /dev/null
+++ b/Assets/Materials/Trail.mat.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: e2496d8331c05acc28764b9595de7e24
+NativeFormatImporter:
+ externalObjects: {}
+ mainObjectFileID: 2100000
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Readme.asset b/Assets/Readme.asset
deleted file mode 100644
index 77c2f83..0000000
--- a/Assets/Readme.asset
+++ /dev/null
@@ -1,34 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!114 &11400000
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: fcf7219bab7fe46a1ad266029b2fee19, type: 3}
- m_Name: Readme
- m_EditorClassIdentifier:
- icon: {fileID: 2800000, guid: 727a75301c3d24613a3ebcec4a24c2c8, type: 3}
- title: URP Empty Template
- sections:
- - heading: Welcome to the Universal Render Pipeline
- text: This template includes the settings and assets you need to start creating with the Universal Render Pipeline.
- linkText:
- url:
- - heading: URP Documentation
- text:
- linkText: Read more about URP
- url: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@latest
- - heading: Forums
- text:
- linkText: Get answers and support
- url: https://forum.unity.com/forums/universal-render-pipeline.383/
- - heading: Report bugs
- text:
- linkText: Submit a report
- url: https://unity3d.com/unity/qa/bug-reporting
- loadedLayout: 1
diff --git a/Assets/TutorialInfo/Scripts.meta b/Assets/Scripts.meta
index 02da605..2171ba1 100644
--- a/Assets/TutorialInfo/Scripts.meta
+++ b/Assets/Scripts.meta
@@ -1,9 +1,8 @@
fileFormatVersion: 2
-guid: 5a9bcd70e6a4b4b05badaa72e827d8e0
+guid: c9799f5ee577c27a080d2e2bd5df6b05
folderAsset: yes
-timeCreated: 1475835190
-licenseType: Store
DefaultImporter:
+ externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
diff --git a/Assets/Scripts/MovingSphere.cs b/Assets/Scripts/MovingSphere.cs
new file mode 100644
index 0000000..1f492aa
--- /dev/null
+++ b/Assets/Scripts/MovingSphere.cs
@@ -0,0 +1,68 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class MovingSphere : MonoBehaviour
+{
+ [SerializeField, Range(1f, 100f)]
+ float maxSpeed = 10f;
+ [SerializeField, Range(1f, 100f)]
+ float maxAcceleration = 10f;
+
+ [SerializeField, Range(0f, 1f)]
+ float bounciness = 0.5f;
+
+ Rect allowedArea = new Rect(-4.5f, -4.5f, 9f, 9f);
+
+ Vector3 velocity;
+
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+ Vector2 playerInput = new Vector2(
+ Input.GetAxis("Horizontal"),
+ Input.GetAxis("Vertical")
+ );
+ playerInput = Vector2.ClampMagnitude(playerInput, 1f);
+
+ Vector3 acceleration = new Vector3(
+ playerInput.x,
+ 0f,
+ playerInput.y
+ ) * maxAcceleration;
+ velocity += acceleration * Time.deltaTime;
+ velocity = Vector3.ClampMagnitude(velocity, maxSpeed);
+ Vector3 displacement = velocity * Time.deltaTime;
+
+ Vector3 newPosition = transform.localPosition + displacement;
+
+ if(newPosition.x < allowedArea.xMin)
+ {
+ newPosition.x = allowedArea.xMin;
+ velocity.x = -velocity.x * bounciness;
+ }
+ else if(newPosition.x > allowedArea.xMax)
+ {
+ newPosition.x = allowedArea.xMax;
+ velocity.x = -velocity.x * bounciness;
+ }
+ if(newPosition.z < allowedArea.yMin)
+ {
+ newPosition.z = allowedArea.yMin;
+ velocity.z = -velocity.z * bounciness;
+ }
+ else if(newPosition.z > allowedArea.yMax)
+ {
+ newPosition.z = allowedArea.yMax;
+ velocity.z = -velocity.z * bounciness;
+ }
+
+ transform.localPosition = newPosition;
+ }
+}
diff --git a/Assets/TutorialInfo/Scripts/Editor/ReadmeEditor.cs.meta b/Assets/Scripts/MovingSphere.cs.meta
index f038618..40eb1a3 100644
--- a/Assets/TutorialInfo/Scripts/Editor/ReadmeEditor.cs.meta
+++ b/Assets/Scripts/MovingSphere.cs.meta
@@ -1,8 +1,7 @@
fileFormatVersion: 2
-guid: 476cc7d7cd9874016adc216baab94a0a
-timeCreated: 1484146680
-licenseType: Store
+guid: e17f58ec10e7e645f9d1369660c10c3d
MonoImporter:
+ externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
diff --git a/Assets/Settings/URP-HighFidelity-Renderer.asset b/Assets/Settings/URP-HighFidelity-Renderer.asset
index b1673be..90883f9 100644
--- a/Assets/Settings/URP-HighFidelity-Renderer.asset
+++ b/Assets/Settings/URP-HighFidelity-Renderer.asset
@@ -43,6 +43,7 @@ MonoBehaviour:
m_RendererFeatureMap: adc0de57c6d2eee5
m_UseNativeRenderPass: 0
postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
+ xrSystemData: {fileID: 11400000, guid: 60e1133243b97e347b653163a8c01b64, type: 2}
shaders:
blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3}
copyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3}
@@ -58,6 +59,7 @@ MonoBehaviour:
type: 3}
objectMotionVector: {fileID: 4800000, guid: 7b3ede40266cd49a395def176e1bc486,
type: 3}
+ m_AssetVersion: 1
m_OpaqueLayerMask:
serializedVersion: 2
m_Bits: 4294967295
@@ -77,3 +79,4 @@ MonoBehaviour:
m_AccurateGbufferNormals: 0
m_ClusteredRendering: 0
m_TileSize: 32
+ m_IntermediateTextureMode: 1
diff --git a/Assets/TutorialInfo/Icons.meta b/Assets/TutorialInfo/Icons.meta
deleted file mode 100644
index 1d19fb9..0000000
--- a/Assets/TutorialInfo/Icons.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 8a0c9218a650547d98138cd835033977
-folderAsset: yes
-timeCreated: 1484670163
-licenseType: Store
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/TutorialInfo/Layout.wlt b/Assets/TutorialInfo/Layout.wlt
deleted file mode 100644
index 7b50a25..0000000
--- a/Assets/TutorialInfo/Layout.wlt
+++ /dev/null
@@ -1,654 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!114 &1
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12004, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_PixelRect:
- serializedVersion: 2
- x: 0
- y: 45
- width: 1666
- height: 958
- m_ShowMode: 4
- m_Title:
- m_RootView: {fileID: 6}
- m_MinSize: {x: 950, y: 542}
- m_MaxSize: {x: 10000, y: 10000}
---- !u!114 &2
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_Children: []
- m_Position:
- serializedVersion: 2
- x: 0
- y: 466
- width: 290
- height: 442
- m_MinSize: {x: 234, y: 271}
- m_MaxSize: {x: 10004, y: 10021}
- m_ActualView: {fileID: 14}
- m_Panes:
- - {fileID: 14}
- m_Selected: 0
- m_LastSelected: 0
---- !u!114 &3
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_Children:
- - {fileID: 4}
- - {fileID: 2}
- m_Position:
- serializedVersion: 2
- x: 973
- y: 0
- width: 290
- height: 908
- m_MinSize: {x: 234, y: 492}
- m_MaxSize: {x: 10004, y: 14042}
- vertical: 1
- controlID: 226
---- !u!114 &4
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_Children: []
- m_Position:
- serializedVersion: 2
- x: 0
- y: 0
- width: 290
- height: 466
- m_MinSize: {x: 204, y: 221}
- m_MaxSize: {x: 4004, y: 4021}
- m_ActualView: {fileID: 17}
- m_Panes:
- - {fileID: 17}
- m_Selected: 0
- m_LastSelected: 0
---- !u!114 &5
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_Children: []
- m_Position:
- serializedVersion: 2
- x: 0
- y: 466
- width: 973
- height: 442
- m_MinSize: {x: 202, y: 221}
- m_MaxSize: {x: 4002, y: 4021}
- m_ActualView: {fileID: 15}
- m_Panes:
- - {fileID: 15}
- m_Selected: 0
- m_LastSelected: 0
---- !u!114 &6
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12008, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_Children:
- - {fileID: 7}
- - {fileID: 8}
- - {fileID: 9}
- m_Position:
- serializedVersion: 2
- x: 0
- y: 0
- width: 1666
- height: 958
- m_MinSize: {x: 950, y: 542}
- m_MaxSize: {x: 10000, y: 10000}
---- !u!114 &7
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12011, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_Children: []
- m_Position:
- serializedVersion: 2
- x: 0
- y: 0
- width: 1666
- height: 30
- m_MinSize: {x: 0, y: 0}
- m_MaxSize: {x: 0, y: 0}
- m_LastLoadedLayoutName: Tutorial
---- !u!114 &8
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_Children:
- - {fileID: 10}
- - {fileID: 3}
- - {fileID: 11}
- m_Position:
- serializedVersion: 2
- x: 0
- y: 30
- width: 1666
- height: 908
- m_MinSize: {x: 713, y: 492}
- m_MaxSize: {x: 18008, y: 14042}
- vertical: 0
- controlID: 74
---- !u!114 &9
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12042, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_Children: []
- m_Position:
- serializedVersion: 2
- x: 0
- y: 938
- width: 1666
- height: 20
- m_MinSize: {x: 0, y: 0}
- m_MaxSize: {x: 0, y: 0}
---- !u!114 &10
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_Children:
- - {fileID: 12}
- - {fileID: 5}
- m_Position:
- serializedVersion: 2
- x: 0
- y: 0
- width: 973
- height: 908
- m_MinSize: {x: 202, y: 442}
- m_MaxSize: {x: 4002, y: 8042}
- vertical: 1
- controlID: 75
---- !u!114 &11
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_Children: []
- m_Position:
- serializedVersion: 2
- x: 1263
- y: 0
- width: 403
- height: 908
- m_MinSize: {x: 277, y: 71}
- m_MaxSize: {x: 4002, y: 4021}
- m_ActualView: {fileID: 13}
- m_Panes:
- - {fileID: 13}
- m_Selected: 0
- m_LastSelected: 0
---- !u!114 &12
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_Children: []
- m_Position:
- serializedVersion: 2
- x: 0
- y: 0
- width: 973
- height: 466
- m_MinSize: {x: 202, y: 221}
- m_MaxSize: {x: 4002, y: 4021}
- m_ActualView: {fileID: 16}
- m_Panes:
- - {fileID: 16}
- m_Selected: 0
- m_LastSelected: 0
---- !u!114 &13
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12019, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_AutoRepaintOnSceneChange: 0
- m_MinSize: {x: 275, y: 50}
- m_MaxSize: {x: 4000, y: 4000}
- m_TitleContent:
- m_Text: Inspector
- m_Image: {fileID: -6905738622615590433, guid: 0000000000000000d000000000000000,
- type: 0}
- m_Tooltip:
- m_DepthBufferBits: 0
- m_Pos:
- serializedVersion: 2
- x: 2
- y: 19
- width: 401
- height: 887
- m_ScrollPosition: {x: 0, y: 0}
- m_InspectorMode: 0
- m_PreviewResizer:
- m_CachedPref: -160
- m_ControlHash: -371814159
- m_PrefName: Preview_InspectorPreview
- m_PreviewWindow: {fileID: 0}
---- !u!114 &14
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12014, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_AutoRepaintOnSceneChange: 0
- m_MinSize: {x: 230, y: 250}
- m_MaxSize: {x: 10000, y: 10000}
- m_TitleContent:
- m_Text: Project
- m_Image: {fileID: -7501376956915960154, guid: 0000000000000000d000000000000000,
- type: 0}
- m_Tooltip:
- m_DepthBufferBits: 0
- m_Pos:
- serializedVersion: 2
- x: 2
- y: 19
- width: 286
- height: 421
- m_SearchFilter:
- m_NameFilter:
- m_ClassNames: []
- m_AssetLabels: []
- m_AssetBundleNames: []
- m_VersionControlStates: []
- m_ReferencingInstanceIDs:
- m_ScenePaths: []
- m_ShowAllHits: 0
- m_SearchArea: 0
- m_Folders:
- - Assets
- m_ViewMode: 0
- m_StartGridSize: 64
- m_LastFolders:
- - Assets
- m_LastFoldersGridSize: -1
- m_LastProjectPath: /Users/danielbrauer/Unity Projects/New Unity Project 47
- m_IsLocked: 0
- m_FolderTreeState:
- scrollPos: {x: 0, y: 0}
- m_SelectedIDs: ee240000
- m_LastClickedID: 9454
- m_ExpandedIDs: ee24000000ca9a3bffffff7f
- m_RenameOverlay:
- m_UserAcceptedRename: 0
- m_Name:
- m_OriginalName:
- m_EditFieldRect:
- serializedVersion: 2
- x: 0
- y: 0
- width: 0
- height: 0
- m_UserData: 0
- m_IsWaitingForDelay: 0
- m_IsRenaming: 0
- m_OriginalEventType: 11
- m_IsRenamingFilename: 1
- m_ClientGUIView: {fileID: 0}
- m_SearchString:
- m_CreateAssetUtility:
- m_EndAction: {fileID: 0}
- m_InstanceID: 0
- m_Path:
- m_Icon: {fileID: 0}
- m_ResourceFile:
- m_AssetTreeState:
- scrollPos: {x: 0, y: 0}
- m_SelectedIDs: 68fbffff
- m_LastClickedID: 0
- m_ExpandedIDs: ee240000
- m_RenameOverlay:
- m_UserAcceptedRename: 0
- m_Name:
- m_OriginalName:
- m_EditFieldRect:
- serializedVersion: 2
- x: 0
- y: 0
- width: 0
- height: 0
- m_UserData: 0
- m_IsWaitingForDelay: 0
- m_IsRenaming: 0
- m_OriginalEventType: 11
- m_IsRenamingFilename: 1
- m_ClientGUIView: {fileID: 0}
- m_SearchString:
- m_CreateAssetUtility:
- m_EndAction: {fileID: 0}
- m_InstanceID: 0
- m_Path:
- m_Icon: {fileID: 0}
- m_ResourceFile:
- m_ListAreaState:
- m_SelectedInstanceIDs: 68fbffff
- m_LastClickedInstanceID: -1176
- m_HadKeyboardFocusLastEvent: 0
- m_ExpandedInstanceIDs: c6230000
- m_RenameOverlay:
- m_UserAcceptedRename: 0
- m_Name:
- m_OriginalName:
- m_EditFieldRect:
- serializedVersion: 2
- x: 0
- y: 0
- width: 0
- height: 0
- m_UserData: 0
- m_IsWaitingForDelay: 0
- m_IsRenaming: 0
- m_OriginalEventType: 11
- m_IsRenamingFilename: 1
- m_ClientGUIView: {fileID: 0}
- m_CreateAssetUtility:
- m_EndAction: {fileID: 0}
- m_InstanceID: 0
- m_Path:
- m_Icon: {fileID: 0}
- m_ResourceFile:
- m_NewAssetIndexInList: -1
- m_ScrollPosition: {x: 0, y: 0}
- m_GridSize: 64
- m_DirectoriesAreaWidth: 110
---- !u!114 &15
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12015, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_AutoRepaintOnSceneChange: 1
- m_MinSize: {x: 200, y: 200}
- m_MaxSize: {x: 4000, y: 4000}
- m_TitleContent:
- m_Text: Game
- m_Image: {fileID: -2087823869225018852, guid: 0000000000000000d000000000000000,
- type: 0}
- m_Tooltip:
- m_DepthBufferBits: 32
- m_Pos:
- serializedVersion: 2
- x: 0
- y: 19
- width: 971
- height: 421
- m_MaximizeOnPlay: 0
- m_Gizmos: 0
- m_Stats: 0
- m_SelectedSizes: 00000000000000000000000000000000000000000000000000000000000000000000000000000000
- m_TargetDisplay: 0
- m_ZoomArea:
- m_HRangeLocked: 0
- m_VRangeLocked: 0
- m_HBaseRangeMin: -242.75
- m_HBaseRangeMax: 242.75
- m_VBaseRangeMin: -101
- m_VBaseRangeMax: 101
- m_HAllowExceedBaseRangeMin: 1
- m_HAllowExceedBaseRangeMax: 1
- m_VAllowExceedBaseRangeMin: 1
- m_VAllowExceedBaseRangeMax: 1
- m_ScaleWithWindow: 0
- m_HSlider: 0
- m_VSlider: 0
- m_IgnoreScrollWheelUntilClicked: 0
- m_EnableMouseInput: 1
- m_EnableSliderZoom: 0
- m_UniformScale: 1
- m_UpDirection: 1
- m_DrawArea:
- serializedVersion: 2
- x: 0
- y: 17
- width: 971
- height: 404
- m_Scale: {x: 2, y: 2}
- m_Translation: {x: 485.5, y: 202}
- m_MarginLeft: 0
- m_MarginRight: 0
- m_MarginTop: 0
- m_MarginBottom: 0
- m_LastShownAreaInsideMargins:
- serializedVersion: 2
- x: -242.75
- y: -101
- width: 485.5
- height: 202
- m_MinimalGUI: 1
- m_defaultScale: 2
- m_TargetTexture: {fileID: 0}
- m_CurrentColorSpace: 0
- m_LastWindowPixelSize: {x: 1942, y: 842}
- m_ClearInEditMode: 1
- m_NoCameraWarning: 1
- m_LowResolutionForAspectRatios: 01000000000100000100
---- !u!114 &16
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12013, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_AutoRepaintOnSceneChange: 1
- m_MinSize: {x: 200, y: 200}
- m_MaxSize: {x: 4000, y: 4000}
- m_TitleContent:
- m_Text: Scene
- m_Image: {fileID: 2318424515335265636, guid: 0000000000000000d000000000000000,
- type: 0}
- m_Tooltip:
- m_DepthBufferBits: 32
- m_Pos:
- serializedVersion: 2
- x: 0
- y: 19
- width: 971
- height: 445
- m_SceneLighting: 1
- lastFramingTime: 0
- m_2DMode: 0
- m_isRotationLocked: 0
- m_AudioPlay: 0
- m_Position:
- m_Target: {x: 0, y: 0, z: 0}
- speed: 2
- m_Value: {x: 0, y: 0, z: 0}
- m_RenderMode: 0
- m_ValidateTrueMetals: 0
- m_SceneViewState:
- showFog: 1
- showMaterialUpdate: 0
- showSkybox: 1
- showFlares: 1
- showImageEffects: 1
- grid:
- xGrid:
- m_Target: 0
- speed: 2
- m_Value: 0
- yGrid:
- m_Target: 1
- speed: 2
- m_Value: 1
- zGrid:
- m_Target: 0
- speed: 2
- m_Value: 0
- m_Rotation:
- m_Target: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226}
- speed: 2
- m_Value: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226}
- m_Size:
- m_Target: 10
- speed: 2
- m_Value: 10
- m_Ortho:
- m_Target: 0
- speed: 2
- m_Value: 0
- m_LastSceneViewRotation: {x: 0, y: 0, z: 0, w: 0}
- m_LastSceneViewOrtho: 0
- m_ReplacementShader: {fileID: 0}
- m_ReplacementString:
- m_LastLockedObject: {fileID: 0}
- m_ViewIsLockedToObject: 0
---- !u!114 &17
-MonoBehaviour:
- m_ObjectHideFlags: 52
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 1
- m_Script: {fileID: 12061, guid: 0000000000000000e000000000000000, type: 0}
- m_Name:
- m_EditorClassIdentifier:
- m_AutoRepaintOnSceneChange: 0
- m_MinSize: {x: 200, y: 200}
- m_MaxSize: {x: 4000, y: 4000}
- m_TitleContent:
- m_Text: Hierarchy
- m_Image: {fileID: -590624980919486359, guid: 0000000000000000d000000000000000,
- type: 0}
- m_Tooltip:
- m_DepthBufferBits: 0
- m_Pos:
- serializedVersion: 2
- x: 2
- y: 19
- width: 286
- height: 445
- m_TreeViewState:
- scrollPos: {x: 0, y: 0}
- m_SelectedIDs: 68fbffff
- m_LastClickedID: -1176
- m_ExpandedIDs: 7efbffff00000000
- m_RenameOverlay:
- m_UserAcceptedRename: 0
- m_Name:
- m_OriginalName:
- m_EditFieldRect:
- serializedVersion: 2
- x: 0
- y: 0
- width: 0
- height: 0
- m_UserData: 0
- m_IsWaitingForDelay: 0
- m_IsRenaming: 0
- m_OriginalEventType: 11
- m_IsRenamingFilename: 0
- m_ClientGUIView: {fileID: 0}
- m_SearchString:
- m_ExpandedScenes:
- -
- m_CurrenRootInstanceID: 0
- m_Locked: 0
- m_CurrentSortingName: TransformSorting
diff --git a/Assets/TutorialInfo/Layout.wlt.meta b/Assets/TutorialInfo/Layout.wlt.meta
deleted file mode 100644
index c0c8c77..0000000
--- a/Assets/TutorialInfo/Layout.wlt.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: eabc9546105bf4accac1fd62a63e88e6
-timeCreated: 1487337779
-licenseType: Store
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/TutorialInfo/Scripts/Editor.meta b/Assets/TutorialInfo/Scripts/Editor.meta
deleted file mode 100644
index f59f099..0000000
--- a/Assets/TutorialInfo/Scripts/Editor.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 3ad9b87dffba344c89909c6d1b1c17e1
-folderAsset: yes
-timeCreated: 1475593892
-licenseType: Store
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/TutorialInfo/Scripts/Editor/ReadmeEditor.cs b/Assets/TutorialInfo/Scripts/Editor/ReadmeEditor.cs
deleted file mode 100644
index ad55eca..0000000
--- a/Assets/TutorialInfo/Scripts/Editor/ReadmeEditor.cs
+++ /dev/null
@@ -1,242 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-using UnityEditor;
-using System;
-using System.IO;
-using System.Reflection;
-
-[CustomEditor(typeof(Readme))]
-[InitializeOnLoad]
-public class ReadmeEditor : Editor
-{
- static string s_ShowedReadmeSessionStateName = "ReadmeEditor.showedReadme";
-
- static string s_ReadmeSourceDirectory = "Assets/TutorialInfo";
-
- const float k_Space = 16f;
-
- static ReadmeEditor()
- {
- EditorApplication.delayCall += SelectReadmeAutomatically;
- }
-
- static void RemoveTutorial()
- {
- if (EditorUtility.DisplayDialog("Remove Readme Assets",
-
- $"All contents under {s_ReadmeSourceDirectory} will be removed, are you sure you want to proceed?",
- "Proceed",
- "Cancel"))
- {
- if (Directory.Exists(s_ReadmeSourceDirectory))
- {
- FileUtil.DeleteFileOrDirectory(s_ReadmeSourceDirectory);
- FileUtil.DeleteFileOrDirectory(s_ReadmeSourceDirectory + ".meta");
- }
- else
- {
- Debug.Log($"Could not find the Readme folder at {s_ReadmeSourceDirectory}");
- }
-
- var readmeAsset = SelectReadme();
- if (readmeAsset != null)
- {
- var path = AssetDatabase.GetAssetPath(readmeAsset);
- FileUtil.DeleteFileOrDirectory(path + ".meta");
- FileUtil.DeleteFileOrDirectory(path);
- }
-
- AssetDatabase.Refresh();
- }
- }
-
- static void SelectReadmeAutomatically()
- {
- if (!SessionState.GetBool(s_ShowedReadmeSessionStateName, false))
- {
- var readme = SelectReadme();
- SessionState.SetBool(s_ShowedReadmeSessionStateName, true);
-
- if (readme && !readme.loadedLayout)
- {
- LoadLayout();
- readme.loadedLayout = true;
- }
- }
- }
-
- static void LoadLayout()
- {
- var assembly = typeof(EditorApplication).Assembly;
- var windowLayoutType = assembly.GetType("UnityEditor.WindowLayout", true);
- var method = windowLayoutType.GetMethod("LoadWindowLayout", BindingFlags.Public | BindingFlags.Static);
- method.Invoke(null, new object[] { Path.Combine(Application.dataPath, "TutorialInfo/Layout.wlt"), false });
- }
-
- static Readme SelectReadme()
- {
- var ids = AssetDatabase.FindAssets("Readme t:Readme");
- if (ids.Length == 1)
- {
- var readmeObject = AssetDatabase.LoadMainAssetAtPath(AssetDatabase.GUIDToAssetPath(ids[0]));
-
- Selection.objects = new UnityEngine.Object[] { readmeObject };
-
- return (Readme)readmeObject;
- }
- else
- {
- Debug.Log("Couldn't find a readme");
- return null;
- }
- }
-
- protected override void OnHeaderGUI()
- {
- var readme = (Readme)target;
- Init();
-
- var iconWidth = Mathf.Min(EditorGUIUtility.currentViewWidth / 3f - 20f, 128f);
-
- GUILayout.BeginHorizontal("In BigTitle");
- {
- if (readme.icon != null)
- {
- GUILayout.Space(k_Space);
- GUILayout.Label(readme.icon, GUILayout.Width(iconWidth), GUILayout.Height(iconWidth));
- }
- GUILayout.Space(k_Space);
- GUILayout.BeginVertical();
- {
-
- GUILayout.FlexibleSpace();
- GUILayout.Label(readme.title, TitleStyle);
- GUILayout.FlexibleSpace();
- }
- GUILayout.EndVertical();
- GUILayout.FlexibleSpace();
- }
- GUILayout.EndHorizontal();
- }
-
- public override void OnInspectorGUI()
- {
- var readme = (Readme)target;
- Init();
-
- foreach (var section in readme.sections)
- {
- if (!string.IsNullOrEmpty(section.heading))
- {
- GUILayout.Label(section.heading, HeadingStyle);
- }
-
- if (!string.IsNullOrEmpty(section.text))
- {
- GUILayout.Label(section.text, BodyStyle);
- }
-
- if (!string.IsNullOrEmpty(section.linkText))
- {
- if (LinkLabel(new GUIContent(section.linkText)))
- {
- Application.OpenURL(section.url);
- }
- }
-
- GUILayout.Space(k_Space);
- }
-
- if (GUILayout.Button("Remove Readme Assets", ButtonStyle))
- {
- RemoveTutorial();
- }
- }
-
- bool m_Initialized;
-
- GUIStyle LinkStyle
- {
- get { return m_LinkStyle; }
- }
-
- [SerializeField]
- GUIStyle m_LinkStyle;
-
- GUIStyle TitleStyle
- {
- get { return m_TitleStyle; }
- }
-
- [SerializeField]
- GUIStyle m_TitleStyle;
-
- GUIStyle HeadingStyle
- {
- get { return m_HeadingStyle; }
- }
-
- [SerializeField]
- GUIStyle m_HeadingStyle;
-
- GUIStyle BodyStyle
- {
- get { return m_BodyStyle; }
- }
-
- [SerializeField]
- GUIStyle m_BodyStyle;
-
- GUIStyle ButtonStyle
- {
- get { return m_ButtonStyle; }
- }
-
- [SerializeField]
- GUIStyle m_ButtonStyle;
-
- void Init()
- {
- if (m_Initialized)
- return;
- m_BodyStyle = new GUIStyle(EditorStyles.label);
- m_BodyStyle.wordWrap = true;
- m_BodyStyle.fontSize = 14;
- m_BodyStyle.richText = true;
-
- m_TitleStyle = new GUIStyle(m_BodyStyle);
- m_TitleStyle.fontSize = 26;
-
- m_HeadingStyle = new GUIStyle(m_BodyStyle);
- m_HeadingStyle.fontStyle = FontStyle.Bold;
- m_HeadingStyle.fontSize = 18;
-
- m_LinkStyle = new GUIStyle(m_BodyStyle);
- m_LinkStyle.wordWrap = false;
-
- // Match selection color which works nicely for both light and dark skins
- m_LinkStyle.normal.textColor = new Color(0x00 / 255f, 0x78 / 255f, 0xDA / 255f, 1f);
- m_LinkStyle.stretchWidth = false;
-
- m_ButtonStyle = new GUIStyle(EditorStyles.miniButton);
- m_ButtonStyle.fontStyle = FontStyle.Bold;
-
- m_Initialized = true;
- }
-
- bool LinkLabel(GUIContent label, params GUILayoutOption[] options)
- {
- var position = GUILayoutUtility.GetRect(label, LinkStyle, options);
-
- Handles.BeginGUI();
- Handles.color = LinkStyle.normal.textColor;
- Handles.DrawLine(new Vector3(position.xMin, position.yMax), new Vector3(position.xMax, position.yMax));
- Handles.color = Color.white;
- Handles.EndGUI();
-
- EditorGUIUtility.AddCursorRect(position, MouseCursor.Link);
-
- return GUI.Button(position, label, LinkStyle);
- }
-}
diff --git a/Assets/TutorialInfo/Scripts/Readme.cs b/Assets/TutorialInfo/Scripts/Readme.cs
deleted file mode 100644
index 95f6269..0000000
--- a/Assets/TutorialInfo/Scripts/Readme.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-using UnityEngine;
-
-public class Readme : ScriptableObject
-{
- public Texture2D icon;
- public string title;
- public Section[] sections;
- public bool loadedLayout;
-
- [Serializable]
- public class Section
- {
- public string heading, text, linkText, url;
- }
-}
diff --git a/Assets/TutorialInfo/Scripts/Readme.cs.meta b/Assets/TutorialInfo/Scripts/Readme.cs.meta
deleted file mode 100644
index 935153f..0000000
--- a/Assets/TutorialInfo/Scripts/Readme.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: fcf7219bab7fe46a1ad266029b2fee19
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences:
- - icon: {instanceID: 0}
- executionOrder: 0
- icon: {fileID: 2800000, guid: a186f8a87ca4f4d3aa864638ad5dfb65, type: 3}
- userData:
- assetBundleName:
- assetBundleVariant: