public override void OnQuadDestroy(PQ quad) { foreach (EVAFootprint footprint in quad.GetComponentsInChildren <EVAFootprint>(true)) { Destroy(footprint.gameObject); } }
public override void OnQuadDestroy(PQ quad) { foreach (var footprint in quad.GetComponentsInChildren <KerbalEVAFootprintSpawner.KerbalEVAFootprint>(true)) { Destroy(footprint.gameObject); } }
private void ApplyToQuadMaterials(PQ pq) { Renderer[] renderers = pq.GetComponentsInChildren <Renderer>(); foreach (Renderer r in renderers) { AddMaterial(r); } }
private void ApplyToQuadMaterials(PQ pq) { MeshRenderer[] renderers = pq.GetComponentsInChildren <MeshRenderer>(); foreach (MeshRenderer mr in renderers) { AddMaterial(mr); } }
public override void OnQuadDestroy(PQ quad) { foreach(var footprint in quad.GetComponentsInChildren<KerbalEVAFootprintSpawner.KerbalEVAFootprint>(true)) { Destroy (footprint.gameObject); } }
private void ApplyToQuadMaterials(PQ pq) { Renderer[] renderers = pq.GetComponentsInChildren<Renderer>(); foreach (Renderer r in renderers) { AddMaterial(r); } }