public void Detach() { for (int i = 0; i < mLines.Count; i++) { GameObject.DestroyImmediate(mLines[i]); } mLines.Clear(); for (int i = 0; i < mCones.Count; i++) { GameObject.DestroyImmediate(mCones[i]); } mCones.Clear(); DestroyImmediate(this); }