protected void Enqueue(IFixedLocation locationProvider) { lock (_syncLock) { _syncronizationPointQueue.Enqueue(locationProvider); //Debug.Log("Enqueue " + _syncronizationPointQueue.Count); } }
protected void Enqueue(IFixedLocation locationProvider) { lock (_syncLock) { if (!_syncronizationPoints.ContainsKey(locationProvider.LocationId)) { Debug.Log("Registering id : " + locationProvider.LocationId); _syncronizationPoints.Add(locationProvider.LocationId, locationProvider); } } }
public void Register(IFixedLocation locationProvider) { Enqueue(locationProvider); }