public CollisionDetector(ICollisionCollection collisionCollection)
 {
     //flightCollection.flightsChanged += OnFlightsChanged;
     CollisionCollection = collisionCollection;
 }
Beispiel #2
0
 public void CollisionLayerConfiguration(ICollisionCollection collision, List <CollisionLayerStatus> layers)
 {
     layers.Add(collision.GetCollisionLayer("player"));
 }
Beispiel #3
0
 public void CollisionMaskConfiguration(ICollisionCollection collision, List <CollisionLayerStatus> masks)
 {
 }
Beispiel #4
0
 /// <summary>
 /// 设定碰撞层名
 /// </summary>
 /// <param name="collision"></param>
 public void CollisionConfiguration(ICollisionCollection collision)
 {
     collision.AddCollisionLayer("player", CollisionLayerStatus.Layer4);
 }