public void AddToDeploymentQueue(Drone drone) { if (!_started) { StartCoroutine(DeployDrone()); } if (_inQueue.Contains(drone.UID)) { return; } _deploymentQueue.Add(drone); _inQueue.Add(drone.UID); }
public bool Add(T0 key, T1 value) { try { if (MemberCondition == null || MemberCondition(value)) { _Map.Add(key, value); _MaxSorter.Add(value); _MinSorter.Add(value); CollectionChanged?.Invoke(value); ItemAddition?.Invoke(value); return(true); } return(false); } catch { return(false); } }