コード例 #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();
 }