Esempio n. 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);
        }
Esempio n. 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);
        }