private void RemoveTracker(TechType techType) { tracked.Remove(techType); foreach (Transform child in transform) { BlueprintTrackerEntry entry = child.GetComponent <BlueprintTrackerEntry>(); if (entry != null && entry.techType == techType) { Destroy(child.gameObject); break; } } LogStatus(); }
private void AddTracker(TechType techType) { tracked.Add(techType); BlueprintTrackerEntry.Create(transform, techType); LogStatus(); }