예제 #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;
 }
예제 #2
0
 public Chest(string chestName, string modelName)
     : base(modelName)
 {
     this.interactBody = new InteractBody(new ChestNode(chestName));
 }
예제 #3
0
 public InteractObject(InteractNode node, string modelName)
     : base(modelName)
 {
     this.interactBody = new InteractBody(node);
     this.interactNode = node;
 }