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); }
public static Collider BuildBoundingCollider(FrustumRangeObjectInitialization FrustumRangeObjectInitialization, RangeGameObjectV2 RangeGameObject) { return(BuildBoundingCollider(FrustumRangeObjectInitialization.FrustumRangeTypeDefinition.FrustumV2, RangeGameObject)); }
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); }