Пример #1
0
 /// <summary>
 /// Subscribes a delegate to vehicle destroyed event
 /// </summary>
 /// <param name="delegateMethod">Delegate</param>
 public void SubscribeToVehicleDestroyedEvent(OnVehicleDestroyedDelegate delegateMethod)
 {
     this.OnVehicleDestroyedEvent += delegateMethod;
 }
Пример #2
0
 /// <summary>
 /// Unsubscribes from vehicle destroyed event
 /// </summary>
 /// <param name="delegateMethod">Delegate</param>
 public void UnsubscribeFromVehicleDestroyedEvent(OnVehicleDestroyedDelegate delegateMethod)
 {
     this.OnVehicleDestroyedEvent -= delegateMethod;
 }