Exemple #1
0
 /// <summary>
 /// Unsubscribes delegate from player disconnected event
 /// </summary>
 /// <param name="delegateMethod">Delegate</param>
 public void UnsubscribeFromPlayerDisconnectEvent(OnPlayerDisconnectDelegate delegateMethod)
 {
     OnPlayerDisconnectEvent -= delegateMethod;
 }
Exemple #2
0
 /// <summary>
 /// Subscribes delegate to player disconnected event
 /// </summary>
 /// <param name="delegateMethod">Delegate</param>
 public void SubscribeToPlayerDisconnectEvent(OnPlayerDisconnectDelegate delegateMethod)
 {
     OnPlayerDisconnectEvent += delegateMethod;
 }