using UnityEngine; using System.Collections; using System.Collections.Generic; namespace Invector { public class vSpikeControl : MonoBehaviour { [HideInInspector] public List attachColliders; void Start() { attachColliders = new List(); var objs = GetComponentsInChildren(); foreach (vSpike obj in objs) obj.control = this; } } }