private void AlertedDeviceDestroyed(OxStationController obj) { var prefabId = obj?.GetPrefabIDString(); if (!string.IsNullOrEmpty(prefabId)) { if (TrackedDevices.ContainsKey(prefabId)) { UnTrackDevice(obj, prefabId); DisplayManager?.UpdateDisplay(); } } }
private void AlertedNewDevicePlaced(OxStationController obj) { if (!FindManager()) { return; } var prefabId = obj?.GetPrefabIDString(); if (!string.IsNullOrEmpty(prefabId)) { if (obj.Manager == Manager && !TrackedDevices.ContainsKey(prefabId)) { TrackDevice(obj, prefabId); DisplayManager?.UpdateDisplay(); } } }