Пример #1
0
        public ObstacleListenerSystem(Func <TransformStruct> RangeTransformProvider)
        {
            this.AssociatedRangeTransformProvider = RangeTransformProvider;

            #region External Dependencies

            ObstaclesListenerManager = ObstaclesListenerManager.Get();

            #endregion

            nearSquareObstacles      = new List <ObstacleInteractiveObject>();
            ObstacleListenerUniqueID = ObstaclesListenerManager.OnObstacleListenerCreation(this);
        }
Пример #2
0
 public void OnObstacleListenerDestroyed()
 {
     Debug.Log(MyLog.Format("OnObstacleListenerDestroyed"));
     ObstaclesListenerManager.OnObstacleListenerDestroyed(this);
     nearSquareObstacles.Clear();
 }
Пример #3
0
 public void Tick(float d)
 {
     Profiler.BeginSample("ObstacleOcclusionCalculationManagerV2");
     ManualCalculation(ObstaclesListenerManager.GetAllObstacleListeners(), false);
     Profiler.EndSample();
 }