コード例 #1
0
        public MoveablePickupObject(string id, ActorType actorType, Transform3D transform, EffectParameters effectParameters,
                                    Model model, PickupParameters pickupParameters)
            : base(id, actorType, transform, effectParameters, model)
        {
            this.pickupParameters = pickupParameters;

            //register for callback on CDCR
            this.Body.CollisionSkin.callbackFn += CollisionSkin_callbackFn;
        }
コード例 #2
0
 public ImmovablePickupObject(string id, ActorType actorType, Transform3D transform, EffectParameters effectParameters,
                              Model model, Model lowPolygonModel,
                              MaterialProperties materialProperties, PickupParameters pickupParameters)
     : base(id, actorType, transform, effectParameters, model, lowPolygonModel, materialProperties)
 {
     this.pickupParameters = pickupParameters;
     //register for callback on CDCR
     this.Body.CollisionSkin.callbackFn += CollisionSkin_callbackFn;
 }