Пример #1
0
 /// <summary>
 /// When the ball leaves a scoring zone
 /// </summary>
 /// <param name="zone">The zone that was left</param>
 public void ZoneLeft(BowlZoneScript zone)
 {
     // remove from the active zone list
     _activeZones.Remove(zone);
 }
Пример #2
0
 /// <summary>
 /// When the ball enters a scoring zone
 /// </summary>
 /// <param name="zone">The zone that was entered</param>
 public void ZoneEntered(BowlZoneScript zone)
 {
     // add this to the list of zones that the ball is in
     _activeZones.Add(zone);
 }