From 6958a9cb33eb97eac5b22b7d5bfe0a086edf5d59 Mon Sep 17 00:00:00 2001 From: lordmizel Date: Thu, 31 May 2018 15:20:14 +0200 Subject: [PATCH] Added ability to activate/deactivate neons (press N) and enemies (press M). --- ShowPT/Assets/Scenes/Game.unity | 198 +++++++++++++++------ ShowPT/Assets/{ => Scripts}/Barrel.cs | 0 ShowPT/Assets/{ => Scripts}/Barrel.cs.meta | 0 ShowPT/Assets/Scripts/CtrlDebug.cs | 30 ++++ 4 files changed, 172 insertions(+), 56 deletions(-) rename ShowPT/Assets/{ => Scripts}/Barrel.cs (100%) rename ShowPT/Assets/{ => Scripts}/Barrel.cs.meta (100%) diff --git a/ShowPT/Assets/Scenes/Game.unity b/ShowPT/Assets/Scenes/Game.unity index 724248ed..e5e423cc 100644 --- a/ShowPT/Assets/Scenes/Game.unity +++ b/ShowPT/Assets/Scenes/Game.unity @@ -771,7 +771,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 40 + value: 36 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -3285,7 +3285,7 @@ Transform: - {fileID: 1656855913} - {fileID: 89874970} m_Father: {fileID: 0} - m_RootOrder: 43 + m_RootOrder: 39 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1001 &105426061 Prefab: @@ -3674,19 +3674,19 @@ Prefab: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: - m_TransformParent: {fileID: 0} + m_TransformParent: {fileID: 1730007448} m_Modifications: - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} propertyPath: m_LocalPosition.x - value: -54.188 + value: -63.763916 objectReference: {fileID: 0} - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} propertyPath: m_LocalPosition.y - value: 8.839 + value: 99.97219 objectReference: {fileID: 0} - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} propertyPath: m_LocalPosition.z - value: 18.075 + value: -76.65894 objectReference: {fileID: 0} - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} propertyPath: m_LocalRotation.x @@ -3706,7 +3706,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} propertyPath: m_RootOrder - value: 21 + value: 43 objectReference: {fileID: 0} - target: {fileID: 1965281497583358, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} propertyPath: m_Name @@ -3716,6 +3716,18 @@ Prefab: propertyPath: m_LocalEulerAnglesHint.y value: -132.091 objectReference: {fileID: 0} + - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} + propertyPath: m_LocalScale.x + value: 1.0001934 + objectReference: {fileID: 0} + - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} + propertyPath: m_LocalScale.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} + propertyPath: m_LocalScale.z + value: 0.99976575 + objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} m_IsPrefabParent: 0 @@ -4128,7 +4140,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 56 + value: 52 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -5512,7 +5524,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_RootOrder - value: 60 + value: 56 objectReference: {fileID: 0} - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_LocalEulerAnglesHint.y @@ -6477,7 +6489,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 48 + value: 44 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -7764,6 +7776,11 @@ CanvasRenderer: type: 2} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 218139686} +--- !u!4 &220580772 stripped +Transform: + m_PrefabParentObject: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, + type: 2} + m_PrefabInternal: {fileID: 862238288} --- !u!4 &223081460 stripped Transform: m_PrefabParentObject: {fileID: 400000, guid: 34e89d4b501503d47b13453171db638c, type: 3} @@ -9153,7 +9170,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 52 + value: 48 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -10999,7 +11016,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 47 + value: 43 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -11467,6 +11484,11 @@ MeshFilter: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 331103219} m_Mesh: {fileID: 4300000, guid: 48f3ee64228b5b84a9c94f43bc488d10, type: 3} +--- !u!4 &331284261 stripped +Transform: + m_PrefabParentObject: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, + type: 2} + m_PrefabInternal: {fileID: 1595432217} --- !u!1 &331678022 GameObject: m_ObjectHideFlags: 0 @@ -12306,7 +12328,7 @@ Transform: - {fileID: 700403210} - {fileID: 1768538355} m_Father: {fileID: 0} - m_RootOrder: 32 + m_RootOrder: 28 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &352616483 GameObject: @@ -12511,7 +12533,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 39 + value: 35 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -16763,7 +16785,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 37 + value: 33 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -19385,6 +19407,10 @@ MeshFilter: m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 442263035} m_Mesh: {fileID: 4300000, guid: 188195e07cb98334c99749754568b8d5, type: 3} +--- !u!1 &444076079 stripped +GameObject: + m_PrefabParentObject: {fileID: 100006, guid: 9146c457c82ffe441908092fc54a4168, type: 3} + m_PrefabInternal: {fileID: 830366807} --- !u!1 &445175768 GameObject: m_ObjectHideFlags: 0 @@ -24008,7 +24034,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 46 + value: 42 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -42000,7 +42026,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 44 + value: 40 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -42569,6 +42595,11 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 56502ebc314622244a26cab2f44c4bfa, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!4 &837736318 stripped +Transform: + m_PrefabParentObject: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, + type: 2} + m_PrefabInternal: {fileID: 115797660} --- !u!1001 &839859615 Prefab: m_ObjectHideFlags: 0 @@ -42778,7 +42809,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 54 + value: 50 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -43248,19 +43279,19 @@ Prefab: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: - m_TransformParent: {fileID: 0} + m_TransformParent: {fileID: 1730007448} m_Modifications: - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_LocalPosition.x - value: -51.7 + value: -61.277634 objectReference: {fileID: 0} - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_LocalPosition.y - value: 0.65 + value: 91.788666 objectReference: {fileID: 0} - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_LocalPosition.z - value: 51.8 + value: -42.93493 objectReference: {fileID: 0} - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_LocalRotation.x @@ -43280,12 +43311,24 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_RootOrder - value: 24 + value: 46 objectReference: {fileID: 0} - target: {fileID: 1958634897916010, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_Name value: Kamikaze (1) objectReference: {fileID: 0} + - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} + propertyPath: m_LocalScale.x + value: 0.9993091 + objectReference: {fileID: 0} + - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} + propertyPath: m_LocalScale.y + value: 0.99933225 + objectReference: {fileID: 0} + - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} + propertyPath: m_LocalScale.z + value: 0.9999706 + objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} m_IsPrefabParent: 0 @@ -44867,7 +44910,7 @@ Transform: - {fileID: 1642469440} - {fileID: 944318079} m_Father: {fileID: 0} - m_RootOrder: 34 + m_RootOrder: 30 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &927914263 GameObject: @@ -51711,7 +51754,7 @@ Transform: m_Children: - {fileID: 1678390872} m_Father: {fileID: 0} - m_RootOrder: 33 + m_RootOrder: 29 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1017614449 GameObject: @@ -56532,7 +56575,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4153148252428054, guid: 2a62b6bf1277b474e91d860db71f5359, type: 2} propertyPath: m_RootOrder - value: 29 + value: 25 objectReference: {fileID: 0} - target: {fileID: 1764003057140444, guid: 2a62b6bf1277b474e91d860db71f5359, type: 2} propertyPath: m_Name @@ -67378,7 +67421,7 @@ Transform: - {fileID: 491889951} - {fileID: 1989403946} m_Father: {fileID: 0} - m_RootOrder: 31 + m_RootOrder: 27 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1191029716 GameObject: @@ -67492,7 +67535,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 59 + value: 55 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -68632,7 +68675,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 53 + value: 49 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -69367,7 +69410,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 400000, guid: 62565253ffd3cb14893c38efb90f8f2f, type: 3} propertyPath: m_RootOrder - value: 25 + value: 21 objectReference: {fileID: 0} - target: {fileID: 400000, guid: 62565253ffd3cb14893c38efb90f8f2f, type: 3} propertyPath: m_LocalScale.x @@ -70863,7 +70906,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 36 + value: 32 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -71609,7 +71652,7 @@ Transform: - {fileID: 2070686129} - {fileID: 1069332621} m_Father: {fileID: 0} - m_RootOrder: 38 + m_RootOrder: 34 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1001 &1286015998 Prefab: @@ -76968,7 +77011,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 58 + value: 54 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -78241,7 +78284,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 50 + value: 46 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -88489,19 +88532,19 @@ Prefab: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: - m_TransformParent: {fileID: 0} + m_TransformParent: {fileID: 1730007448} m_Modifications: - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_LocalPosition.x - value: -54.749073 + value: -64.3246 objectReference: {fileID: 0} - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_LocalPosition.y - value: 0.003036499 + value: 91.142136 objectReference: {fileID: 0} - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_LocalPosition.z - value: -48.035625 + value: -142.76762 objectReference: {fileID: 0} - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_LocalRotation.x @@ -88521,12 +88564,24 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_RootOrder - value: 23 + value: 45 objectReference: {fileID: 0} - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} propertyPath: m_LocalEulerAnglesHint.y value: 36.066 objectReference: {fileID: 0} + - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} + propertyPath: m_LocalScale.x + value: 0.9995386 + objectReference: {fileID: 0} + - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} + propertyPath: m_LocalScale.y + value: 0.99933225 + objectReference: {fileID: 0} + - target: {fileID: 4079333015304398, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} + propertyPath: m_LocalScale.z + value: 0.99974155 + objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: 10de38bcd01ea1945a24d21b0c00b33d, type: 2} m_IsPrefabParent: 0 @@ -88734,7 +88789,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 35 + m_RootOrder: 31 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1001 &1606399376 Prefab: @@ -91465,7 +91520,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 49 + value: 45 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -92620,19 +92675,19 @@ Prefab: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: - m_TransformParent: {fileID: 0} + m_TransformParent: {fileID: 1730007448} m_Modifications: - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} propertyPath: m_LocalPosition.x - value: -42.84 + value: -52.423756 objectReference: {fileID: 0} - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} propertyPath: m_LocalPosition.y - value: 9.037 + value: 100.17007 objectReference: {fileID: 0} - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} propertyPath: m_LocalPosition.z - value: -16.312 + value: -111.04492 objectReference: {fileID: 0} - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} propertyPath: m_LocalRotation.x @@ -92652,7 +92707,19 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} propertyPath: m_RootOrder - value: 22 + value: 44 + objectReference: {fileID: 0} + - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} + propertyPath: m_LocalScale.x + value: 1.0000188 + objectReference: {fileID: 0} + - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} + propertyPath: m_LocalScale.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} + propertyPath: m_LocalScale.z + value: 0.9999407 objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: ded5d789bf176dd4da727016c3f042d3, type: 2} @@ -93340,8 +93407,12 @@ Transform: - {fileID: 1991977455} - {fileID: 1670050814} - {fileID: 1753050691} + - {fileID: 837736318} + - {fileID: 1737496319} + - {fileID: 331284261} + - {fileID: 220580772} m_Father: {fileID: 0} - m_RootOrder: 41 + m_RootOrder: 37 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1733524725 GameObject: @@ -93686,6 +93757,11 @@ NavMeshObstacle: m_CarveOnlyStationary: 1 m_Center: {x: 0, y: 0, z: 0} m_TimeToStationary: 0.5 +--- !u!4 &1737496319 stripped +Transform: + m_PrefabParentObject: {fileID: 4149432029078660, guid: ded5d789bf176dd4da727016c3f042d3, + type: 2} + m_PrefabInternal: {fileID: 1706733469} --- !u!1 &1739286625 GameObject: m_ObjectHideFlags: 0 @@ -96552,7 +96628,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4571479616573012, guid: f0d0e42c67fc064479f18a7382631ed6, type: 2} propertyPath: m_RootOrder - value: 30 + value: 26 objectReference: {fileID: 0} - target: {fileID: 114623645713180148, guid: f0d0e42c67fc064479f18a7382631ed6, type: 2} @@ -97362,7 +97438,7 @@ Prefab: - target: {fileID: 224395671140579080, guid: c366c3059c131774094fd42995c42b42, type: 2} propertyPath: m_RootOrder - value: 27 + value: 23 objectReference: {fileID: 0} - target: {fileID: 224395671140579080, guid: c366c3059c131774094fd42995c42b42, type: 2} @@ -97702,7 +97778,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4114487526374810, guid: 020030e7ca02d944eb8625b1fd8c4c5b, type: 2} propertyPath: m_RootOrder - value: 28 + value: 24 objectReference: {fileID: 0} - target: {fileID: 114587176421123022, guid: 020030e7ca02d944eb8625b1fd8c4c5b, type: 2} @@ -97743,6 +97819,16 @@ Prefab: propertyPath: canon value: objectReference: {fileID: 1125331861} + - target: {fileID: 114497096684429664, guid: 020030e7ca02d944eb8625b1fd8c4c5b, + type: 2} + propertyPath: neons + value: + objectReference: {fileID: 444076079} + - target: {fileID: 114497096684429664, guid: 020030e7ca02d944eb8625b1fd8c4c5b, + type: 2} + propertyPath: enemies + value: + objectReference: {fileID: 1730007447} m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: 020030e7ca02d944eb8625b1fd8c4c5b, type: 2} m_IsPrefabParent: 0 @@ -98278,7 +98364,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 26 + value: 22 objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} @@ -108110,7 +108196,7 @@ RectTransform: - {fileID: 1365781547} - {fileID: 1995161051} m_Father: {fileID: 0} - m_RootOrder: 45 + m_RootOrder: 41 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -110886,7 +110972,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 51 + value: 47 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -119057,7 +119143,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 55 + value: 51 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name @@ -139786,7 +139872,7 @@ Transform: - {fileID: 1565986890} - {fileID: 1587457259} m_Father: {fileID: 0} - m_RootOrder: 42 + m_RootOrder: 38 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &2136739425 GameObject: @@ -140242,7 +140328,7 @@ Prefab: objectReference: {fileID: 0} - target: {fileID: 4286574601512090, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_RootOrder - value: 57 + value: 53 objectReference: {fileID: 0} - target: {fileID: 1492717676679900, guid: 9db16f8b3a3eaa043b83ea2ff0f310cf, type: 2} propertyPath: m_Name diff --git a/ShowPT/Assets/Barrel.cs b/ShowPT/Assets/Scripts/Barrel.cs similarity index 100% rename from ShowPT/Assets/Barrel.cs rename to ShowPT/Assets/Scripts/Barrel.cs diff --git a/ShowPT/Assets/Barrel.cs.meta b/ShowPT/Assets/Scripts/Barrel.cs.meta similarity index 100% rename from ShowPT/Assets/Barrel.cs.meta rename to ShowPT/Assets/Scripts/Barrel.cs.meta diff --git a/ShowPT/Assets/Scripts/CtrlDebug.cs b/ShowPT/Assets/Scripts/CtrlDebug.cs index 62532ed7..94ffe1bb 100644 --- a/ShowPT/Assets/Scripts/CtrlDebug.cs +++ b/ShowPT/Assets/Scripts/CtrlDebug.cs @@ -15,6 +15,10 @@ public class CtrlDebug : MonoBehaviour public GameObject shotgun; public GameObject rifle; public GameObject canon; + + public GameObject neons; + public GameObject enemies; + // Use this for initialization void Start () { @@ -99,6 +103,32 @@ void Update () { } } } + + //Activate/Deactivate neons + if (Input.GetKeyDown (KeyCode.N)) + { + if (neons.activeInHierarchy) + { + neons.SetActive (false); + } + else + { + neons.SetActive (true); + } + } + + //Activate/Deactivate enemies + if (Input.GetKeyDown (KeyCode.M)) + { + if (enemies.activeInHierarchy) + { + enemies.SetActive (false); + } + else + { + enemies.SetActive (true); + } + } } void enableDebug()