Beispiel #1
0
 //This is retarded
 public void UnregisterAllEvents()
 {
     scoreSystem?.onScoreChanged.RemoveListener(ChangeScore);
     hitMissDeterminer?.onHit.RemoveListener(RegisterHit);
     hitMissDeterminer?.onMiss.RemoveListener(RegisterMiss);
     onKillEvent?.RemoveListener(RegisterKill);
     timerTickedEvent?.RemoveListener(UpdateTimeText);
 }
Beispiel #2
0
 public static void RemoveScaleListener(UnityAction updateScaleCallback)
 {
     m_UpdateValues.RemoveListener(updateScaleCallback);
 }
Beispiel #3
0
 public void UnregisterPreAction(UnityAction action)
 {
     _preChange.RemoveListener(action);
 }
Beispiel #4
0
 /// <summary>
 /// Unregisters a listener on the OnStackDisc Event
 /// </summary>
 /// <param name="p_callback">The function callback to be removed</param>
 public void UnregisterOnStackListener(UnityAction p_callback)
 {
     _onStackDisc.RemoveListener(p_callback);
 }
Beispiel #5
0
 /// <summary>
 /// Add a Localization listener to catch the event that is invoked when the selected language is changed.
 /// </summary>
 /// <param name="localize"></param>
 public void AddOnLocalizeEvent(ILocalize localize)
 {
     Localize.RemoveListener(localize.OnLocalize);
     Localize.AddListener(localize.OnLocalize);
     localize.OnLocalize();
 }
Beispiel #6
0
 public void UnregisterFinal(UnityAction act) //unregister to all instances of this event finishing
 {
     uEventFinal.RemoveListener(act);
 }
Beispiel #7
0
 public void Unregister(UnityAction act)//unregister to standard Play event
 {
     uEventPlay.RemoveListener(act);
 }
 /// <summary>
 /// 取消订阅碰撞离开事件
 /// </summary>
 /// <param name=""></param>
 public void CancelSubscribeCollisionExit(IOnQuadtreeCollisionExit subscriber)
 {
     collisionExitEventHandler.RemoveListener(subscriber.OnQuadtreeCollisionExit);
 }
 public void RemoveOpeningEvent(UnityAction action)
 {
     _openingEvent.RemoveListener(action);
 }
Beispiel #10
0
 private void OnDestroy()
 {
     _onPlayerEntersRoom.RemoveListener(Respawn);
 }
Beispiel #11
0
 void OnDestroy()
 {
     openbook.RemoveListener(SetOpenFalse);
     purchaseButton.onClick.RemoveListener(ButtonPressed);
 }
 public void UnRegister(UnityAction action)
 {
     desiredEvent?.RemoveListener(action);
 }
Beispiel #13
0
 internal void RemoveOnSettingsUpdatedListener(UnityAction listener)
 {
     onSettingsUpdated.RemoveListener(listener);
 }
Beispiel #14
0
 public static IDisposable OnChange(this UnityEvent @event, UnityAction a)
 {
     @event.AddListener(a);
     return(Disposable.Create(() => @event.RemoveListener(a)));
 }
 public void RemovePercentsChangedListener(UnityAction <int> action)
 {
     _percentsChanged.RemoveListener(action);
 }
 /// <summary>
 /// 取消订阅碰撞进入事件
 /// </summary>
 /// <param name=""></param>
 public void CancelSubscribeCollisionEnter(IOnQuadtreeCollisionEnter subscriber)
 {
     collisionEnterEventHandler.RemoveListener(subscriber.OnQuadtreeCollisionEnter);
 }
 /// <summary>
 /// 取消订阅碰撞停留事件
 /// </summary>
 /// <param name=""></param>
 public void CancelSubscribeCollisionStay(IOnQuadtreeCollisionStay subscriber)
 {
     collisionStayEventHandler.RemoveListener(subscriber.OnQuadtreeCollisionStay);
 }
 public void RemovePlayingEvent(UnityAction action)
 {
     _playingEvent.RemoveListener(action);
 }
Beispiel #19
0
 public void Unsubscribe(UnityAction action)
 {
     _event.RemoveListener(action);
 }
 public void RemovePausedEvent(UnityAction action)
 {
     _pausedEvent.RemoveListener(action);
 }
Beispiel #21
0
 public void UnregisterClosure(UnityAction act) //unregister to action finished event
 {
     uEventClose.RemoveListener(act);
 }
 public void RemoveStoppedEvent(UnityAction action)
 {
     _stoppedEvent.RemoveListener(action);
 }
Beispiel #23
0
 public void Unsubscribe(UnityAction callback)
 {
     _onTouchEvent.RemoveListener(callback);
 }
 public void RemoveEndReachedEvent(UnityAction action)
 {
     _endReachedEvent.RemoveListener(action);
 }
Beispiel #25
0
 public static void UnRegisterUpdate(UnityAction act)
 {
     StaticUpdate.RemoveListener(act);
 }
 public void RemoveEncounteredErrorEvent(UnityAction action)
 {
     _encounteredErrorEvent.RemoveListener(action);
 }
Beispiel #27
0
 public void UnregisterAction(UnityAction action)
 {
     _onChange.RemoveListener(action);
 }
Beispiel #28
0
 public void UnregisterPostchangeEvent(UnityAction action)
 {
     _postchangeEvent.RemoveListener(action);
 }
 public void UnregisterListener(UnityAction action)
 {
     @event?.RemoveListener(action);
 }
Beispiel #30
0
 public void RemoveListener(UnityAction action) {
     unityEvent?.RemoveListener(action);
 }