Example #1
0
 public override void OnDestroy()
 {
     base.OnDestroy();
     interactBody.CollisionSkin = null;
     interactBody.DisableBody();
     interactBody.Node = null;
     this.scene.GetPhysicsEngine().RemoveBody(interactBody);
     interactBody = null;
     interactNode = null;
 }
Example #2
0
 public Chest(string chestName, string modelName)
     : base(modelName)
 {
     this.interactBody = new InteractBody(new ChestNode(chestName));
 }
Example #3
0
 public InteractObject(InteractNode node, string modelName)
     : base(modelName)
 {
     this.interactBody = new InteractBody(node);
     this.interactNode = node;
 }