From d474515817730a66748198108a696c1b0112eaa5 Mon Sep 17 00:00:00 2001 From: JoshuaReason Date: Sat, 26 Jan 2019 23:16:52 +1100 Subject: [PATCH] removed colliders from dummie --- Assets/Scipts/Map.cs | 10 ++++++++++ Assets/Shaders.meta | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 Assets/Shaders.meta diff --git a/Assets/Scipts/Map.cs b/Assets/Scipts/Map.cs index abfe731..24fab82 100644 --- a/Assets/Scipts/Map.cs +++ b/Assets/Scipts/Map.cs @@ -49,6 +49,16 @@ public class Map : MonoBehaviour PS.dummies.Add(Instantiate(model, new Vector3(PT.position.x + maxX, PT.position.y, PT.position.z), transform.rotation, PT).gameObject); PS.dummies.Add(Instantiate(model, new Vector3(PT.position.x, PT.position.y, PT.position.z + minZ), transform.rotation, PT).gameObject); PS.dummies.Add(Instantiate(model, new Vector3(PT.position.x, PT.position.y, PT.position.z + maxZ), transform.rotation, PT).gameObject); + + foreach (GameObject dummie in PS.dummies) + { + foreach (Collider col in dummie.GetComponentsInChildren()) + { + col.enabled = false; + } + + + } } } diff --git a/Assets/Shaders.meta b/Assets/Shaders.meta new file mode 100644 index 0000000..472bf46 --- /dev/null +++ b/Assets/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f87a054963b01dc4c8aa2e3ffedcca21 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: