From dfc3be1020a13f7d84bda367dde1c49ad080b38c Mon Sep 17 00:00:00 2001 From: voidlp <183586481@qq.com> Date: Fri, 29 May 2020 15:59:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=BC=B9=E5=85=89=E7=85=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Courses/MissileCourse/Scenes/main.unity | 100 +++++++++++++++++- .../Courses/MissileCourse/Scripts/Missle.cs | 10 ++ .../MissileCourse/Scripts/MisslePath.cs | 18 ++++ ZQCourse/Assets/StreamingAssets/build_info | 2 +- ZQCourse/ProjectSettings/TagManager.asset | 2 +- 5 files changed, 125 insertions(+), 7 deletions(-) create mode 100644 ZQCourse/Assets/Courses/MissileCourse/Scripts/MisslePath.cs diff --git a/ZQCourse/Assets/Courses/MissileCourse/Scenes/main.unity b/ZQCourse/Assets/Courses/MissileCourse/Scenes/main.unity index ece74ae..3bc4e02 100644 --- a/ZQCourse/Assets/Courses/MissileCourse/Scenes/main.unity +++ b/ZQCourse/Assets/Courses/MissileCourse/Scenes/main.unity @@ -1354,6 +1354,22 @@ PrefabInstance: propertyPath: m_Name value: CJ_Missile_Tests_daodangM_001 objectReference: {fileID: 0} + - target: {fileID: 100000, guid: b3d9b9437351a654594dd2c0c68d2583, type: 3} + propertyPath: m_Layer + value: 18 + objectReference: {fileID: 0} + - target: {fileID: 100002, guid: b3d9b9437351a654594dd2c0c68d2583, type: 3} + propertyPath: m_Layer + value: 18 + objectReference: {fileID: 0} + - target: {fileID: 100004, guid: b3d9b9437351a654594dd2c0c68d2583, type: 3} + propertyPath: m_Layer + value: 18 + objectReference: {fileID: 0} + - target: {fileID: 100006, guid: b3d9b9437351a654594dd2c0c68d2583, type: 3} + propertyPath: m_Layer + value: 18 + objectReference: {fileID: 0} - target: {fileID: 400000, guid: b3d9b9437351a654594dd2c0c68d2583, type: 3} propertyPath: m_LocalPosition.x value: 46.7 @@ -3696,7 +3712,7 @@ GameObject: - component: {fileID: 214634033} - component: {fileID: 214634035} - component: {fileID: 214634034} - m_Layer: 0 + m_Layer: 18 m_Name: CJ_Missile_Tests_daodang m_TagString: Untagged m_Icon: {fileID: 0} @@ -44178,7 +44194,7 @@ GameObject: - component: {fileID: 866352610} - component: {fileID: 866352612} - component: {fileID: 866352611} - m_Layer: 0 + m_Layer: 18 m_Name: Particle System m_TagString: Untagged m_Icon: {fileID: 0} @@ -51583,6 +51599,10 @@ PrefabInstance: propertyPath: m_StaticEditorFlags value: 4294967295 objectReference: {fileID: 0} + - target: {fileID: 100000, guid: 78cce7a5094a66d48a92e7c69e877dbe, type: 3} + propertyPath: m_Layer + value: 18 + objectReference: {fileID: 0} - target: {fileID: 400000, guid: 78cce7a5094a66d48a92e7c69e877dbe, type: 3} propertyPath: m_LocalPosition.x value: 56.08 @@ -67323,7 +67343,7 @@ GameObject: - component: {fileID: 1505069186} - component: {fileID: 1505069188} - component: {fileID: 1505069187} - m_Layer: 0 + m_Layer: 18 m_Name: CJ_Missile_Tests_daodang_01 m_TagString: Untagged m_Icon: {fileID: 0} @@ -72368,7 +72388,7 @@ GameObject: - component: {fileID: 1516284410} - component: {fileID: 1516284409} - component: {fileID: 1516284408} - m_Layer: 0 + m_Layer: 18 m_Name: CJ_Missile m_TagString: Untagged m_Icon: {fileID: 0} @@ -72498,6 +72518,7 @@ Transform: - {fileID: 880903634} - {fileID: 1785204818} - {fileID: 1430026884} + - {fileID: 1855310990} m_Father: {fileID: 0} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -76445,7 +76466,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 1756635674} - m_Layer: 0 + m_Layer: 18 m_Name: e m_TagString: Untagged m_Icon: {fileID: 0} @@ -77400,6 +77421,75 @@ Transform: m_Father: {fileID: 880903634} m_RootOrder: 10 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1855310989 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1855310990} + - component: {fileID: 1855310991} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1855310990 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1855310989} + m_LocalRotation: {x: 0.65311897, y: -0.5039501, z: 0.0029213193, w: 0.5652092} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1518779420} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 47.837, y: -122.54101, z: -77.36301} +--- !u!108 &1855310991 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1855310989} + m_Enabled: 1 + serializedVersion: 8 + m_Type: 1 + m_Color: {r: 0.89320046, g: 0.9811321, b: 0.9811321, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_CookieSize: 10 + m_Shadows: + m_Type: 0 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 262144 + m_Lightmapping: 4 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 --- !u!1001 &1860983164 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/ZQCourse/Assets/Courses/MissileCourse/Scripts/Missle.cs b/ZQCourse/Assets/Courses/MissileCourse/Scripts/Missle.cs index 60db213..0c281e9 100644 --- a/ZQCourse/Assets/Courses/MissileCourse/Scripts/Missle.cs +++ b/ZQCourse/Assets/Courses/MissileCourse/Scripts/Missle.cs @@ -141,6 +141,16 @@ public class Missle : MonoBehaviour } } + if (Input.GetKeyDown(KeyCode.P)) + { + Time.timeScale = 0; + } + + if (Input.GetKeyDown(KeyCode.O)) + { + Time.timeScale = 1; + } + if (!bTouchingGround && !bTargetReady) { diff --git a/ZQCourse/Assets/Courses/MissileCourse/Scripts/MisslePath.cs b/ZQCourse/Assets/Courses/MissileCourse/Scripts/MisslePath.cs new file mode 100644 index 0000000..d166ffc --- /dev/null +++ b/ZQCourse/Assets/Courses/MissileCourse/Scripts/MisslePath.cs @@ -0,0 +1,18 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class MisslePath : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/ZQCourse/Assets/StreamingAssets/build_info b/ZQCourse/Assets/StreamingAssets/build_info index b0de115..6302bba 100644 --- a/ZQCourse/Assets/StreamingAssets/build_info +++ b/ZQCourse/Assets/StreamingAssets/build_info @@ -1 +1 @@ -Build from LAPTOP-6B1OU541 at 2020/5/29 11:30:57 \ No newline at end of file +Build from LAPTOP-6B1OU541 at 2020/5/29 15:38:47 \ No newline at end of file diff --git a/ZQCourse/ProjectSettings/TagManager.asset b/ZQCourse/ProjectSettings/TagManager.asset index 17cb803..fb7e039 100644 --- a/ZQCourse/ProjectSettings/TagManager.asset +++ b/ZQCourse/ProjectSettings/TagManager.asset @@ -23,7 +23,7 @@ TagManager: - - - - - + - reallight - - -