コード例 #1
0
        public FrustumRangeObjectV2(GameObject AssociatedGameObject, FrustumRangeObjectInitialization FrustumRangeObjectInitialization, CoreInteractiveObject AssociatedInteractiveObject, string objectName = "")
        {
            this.RangeType = RangeType.FRUSTUM;

            this.FrustumRangeObjectInitialization    = FrustumRangeObjectInitialization;
            this.FrustumRangeObjectPositioningSystem = new FrustumRangeObjectPositioningSystem(this.GetFrustum(), this);
            var RangeGameObjectV2 = new RangeGameObjectV2(AssociatedGameObject, this.FrustumRangeObjectInitialization, this, AssociatedInteractiveObject, objectName);

            base.Init(RangeGameObjectV2, FrustumRangeObjectInitialization);
        }
コード例 #2
0
 public static Collider BuildBoundingCollider(FrustumRangeObjectInitialization FrustumRangeObjectInitialization, RangeGameObjectV2 RangeGameObject)
 {
     return(BuildBoundingCollider(FrustumRangeObjectInitialization.FrustumRangeTypeDefinition.FrustumV2, RangeGameObject));
 }
コード例 #3
0
 public RangeGameObjectV2(GameObject attachedGameObject, FrustumRangeObjectInitialization FrustumRangeObjectInitialization, RangeObjectV2 RangeObjectV2, CoreInteractiveObject AssociatedInteractiveObject, string objectName)
 {
     this.attachedGameObject = attachedGameObject;
     this.CommontInit(FrustumRangeObjectInitialization, RangeObjectV2, AssociatedInteractiveObject, objectName);
     this.BoundingCollider = RangeObjectBoundingColliderBuilder.BuildBoundingCollider(FrustumRangeObjectInitialization, this);
 }