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