public void Reset() { for (int i = 0; i < currentDirections.Count; i++) { GameObject go = currentDirections[0].gameObject; if (part.partStatus == repairState.isBeingRepaired) { part.Break(); } currentDirections.Remove(currentDirections[0]); } gameObject.SetActive(false); }