コード例 #1
0
        public override void Init()
        {
            this.InteractiveGameObject.CreateLogicCollider(ObstacleInteractiveObjectInitializerData.InteractiveObjectLogicCollider);
            ObstacleCollider = this.InteractiveGameObject.GetLogicColliderAsBox();
            SquareObstacleSystemInitializationData = ObstacleInteractiveObjectInitializerData.SquareObstacleSystemInitializationData;
            interactiveObjectTag = new InteractiveObjectTag {
                IsObstacle = true
            };
            squareObstacleOcclusionFrustumsDefinition = new SquareObstacleOcclusionFrustumsDefinition();

            ObstacleInteractiveObjectUniqueID = ObstacleInteractiveObjectManager.Get().OnSquareObstacleSystemCreated(this);
        }
コード例 #2
0
        public override void Init()
        {
            this.InteractiveGameObject.CreateLogicCollider(_obstacleInteractiveObjectDefinition.InteractiveObjectLogicCollider, LayerMask.NameToLayer(LayerConstants.PUZZLE_OBSTACLES));
            this.CreatePhysicsCollider(_obstacleInteractiveObjectDefinition.InteractiveObjectLogicCollider);
            this.CreateNavMeshObstacle(_obstacleInteractiveObjectDefinition.SquareObstacleSystemInitializationData, _obstacleInteractiveObjectDefinition.InteractiveObjectLogicCollider);
            ObstacleCollider = this.InteractiveGameObject.GetLogicColliderAsBox();
            SquareObstacleSystemInitializationData = _obstacleInteractiveObjectDefinition.SquareObstacleSystemInitializationData;
            interactiveObjectTag = new InteractiveObjectTag {
                IsObstacle = true
            };
            squareObstacleOcclusionFrustumsDefinition = new SquareObstacleOcclusionFrustumsDefinition(_obstacleInteractiveObjectDefinition.InteractiveObjectLogicCollider);

            ObstacleInteractiveObjectUniqueID = ObstacleInteractiveObjectManager.Get().OnSquareObstacleSystemCreated(this);
        }
コード例 #3
0
 public override void Destroy()
 {
     ObstacleOcclusionCalculationManagerV2.Get().OnObstacleInteractiveObjectDestroyed(this);
     ObstacleInteractiveObjectManager.Get().OnSquareObstacleSystemDestroyed(this);
     base.Destroy();
 }
コード例 #4
0
 public override void Destroy()
 {
     ObstacleInteractiveObjectManager.Get().OnSquareObstacleSystemDestroyed(this);
     base.Destroy();
 }