// Stores references to required components for level generation private void Awake() { constructor = GetComponentInChildren <SegmentConstructor>(); queue = GetComponentInChildren <ConstructionQueue>(); deleter = GetComponentInChildren <SegmentDeleter>(); }
public void MarkForDeletion(SegmentDeleter deleter) { StartCoroutine(deleter.MarkForDeletion(this.gameObject)); }