public ObstacleListenerSystem(Func <TransformStruct> RangeTransformProvider) { this.AssociatedRangeTransformProvider = RangeTransformProvider; #region External Dependencies ObstaclesListenerManager = ObstaclesListenerManager.Get(); #endregion nearSquareObstacles = new List <ObstacleInteractiveObject>(); ObstacleListenerUniqueID = ObstaclesListenerManager.OnObstacleListenerCreation(this); }
public void OnObstacleListenerDestroyed() { Debug.Log(MyLog.Format("OnObstacleListenerDestroyed")); ObstaclesListenerManager.OnObstacleListenerDestroyed(this); nearSquareObstacles.Clear(); }
public void Tick(float d) { Profiler.BeginSample("ObstacleOcclusionCalculationManagerV2"); ManualCalculation(ObstaclesListenerManager.GetAllObstacleListeners(), false); Profiler.EndSample(); }