Browse Source

removed colliders from dummie

master
JoshuaReason 5 years ago
parent
commit
d474515817
2 changed files with 18 additions and 0 deletions
  1. +10
    -0
      Assets/Scipts/Map.cs
  2. +8
    -0
      Assets/Shaders.meta

+ 10
- 0
Assets/Scipts/Map.cs View File

@ -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<Collider>())
{
col.enabled = false;
}
}
}
}

+ 8
- 0
Assets/Shaders.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f87a054963b01dc4c8aa2e3ffedcca21
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Loading…
Cancel
Save