Example #1
0
 public void EnableCollisions(Partition collisionPartition, bool isCollisionResponder)
 {
     IsCollisionResponder = isCollisionResponder;
     CollisionPartition = collisionPartition;
     CollisionCells = new List<PartitionCell> ();
     CollisionPartition.UpdatePartitionCells (this, CollisionCells);
     CollisionEnabled = true;
 }
Example #2
0
 public void DisableCollisions()
 {
     IsCollisionResponder = false;
     CollisionEnabled = false;
     CollisionPartition = null;
     CollisionCells = null;
 }