private void TriggerEvents(object sender, CollisionEventArgs args) { if (args.IsColliding && Entered != null) { Entered(this, new WorldObjectEventArgs(args.Other.RootObject)); } else if(!args.IsColliding && Exited != null) { Exited(this, new WorldObjectEventArgs(args.Other.RootObject)); } }
public void RevokeCollision(CollisionEventArgs args) { if (CollisionEnd != null) CollisionEnd(this, args); }
public void InvokeCollision(CollisionEventArgs args) { if (CollisionStart != null) CollisionStart(this, args); }
private void UpdateMessage(object sender, CollisionEventArgs args) { if (args.IsColliding) { Log.WriteLine("Colliding!"); } else { Log.WriteLine("No Colliding!"); } }