Exemple #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);
 }
Exemple #2
0
 public static void RemoveScaleListener(UnityAction updateScaleCallback)
 {
     m_UpdateValues.RemoveListener(updateScaleCallback);
 }
Exemple #3
0
 public void UnregisterPreAction(UnityAction action)
 {
     _preChange.RemoveListener(action);
 }
Exemple #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);
 }
Exemple #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();
 }
Exemple #6
0
 public void UnregisterFinal(UnityAction act) //unregister to all instances of this event finishing
 {
     uEventFinal.RemoveListener(act);
 }
Exemple #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);
 }
Exemple #10
0
 private void OnDestroy()
 {
     _onPlayerEntersRoom.RemoveListener(Respawn);
 }
 void OnDestroy()
 {
     openbook.RemoveListener(SetOpenFalse);
     purchaseButton.onClick.RemoveListener(ButtonPressed);
 }
 public void UnRegister(UnityAction action)
 {
     desiredEvent?.RemoveListener(action);
 }
Exemple #13
0
 internal void RemoveOnSettingsUpdatedListener(UnityAction listener)
 {
     onSettingsUpdated.RemoveListener(listener);
 }
Exemple #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);
 }
Exemple #19
0
 public void Unsubscribe(UnityAction action)
 {
     _event.RemoveListener(action);
 }
 public void RemovePausedEvent(UnityAction action)
 {
     _pausedEvent.RemoveListener(action);
 }
Exemple #21
0
 public void UnregisterClosure(UnityAction act) //unregister to action finished event
 {
     uEventClose.RemoveListener(act);
 }
 public void RemoveStoppedEvent(UnityAction action)
 {
     _stoppedEvent.RemoveListener(action);
 }
Exemple #23
0
 public void Unsubscribe(UnityAction callback)
 {
     _onTouchEvent.RemoveListener(callback);
 }
 public void RemoveEndReachedEvent(UnityAction action)
 {
     _endReachedEvent.RemoveListener(action);
 }
Exemple #25
0
 public static void UnRegisterUpdate(UnityAction act)
 {
     StaticUpdate.RemoveListener(act);
 }
 public void RemoveEncounteredErrorEvent(UnityAction action)
 {
     _encounteredErrorEvent.RemoveListener(action);
 }
Exemple #27
0
 public void UnregisterAction(UnityAction action)
 {
     _onChange.RemoveListener(action);
 }
Exemple #28
0
 public void UnregisterPostchangeEvent(UnityAction action)
 {
     _postchangeEvent.RemoveListener(action);
 }
 public void UnregisterListener(UnityAction action)
 {
     @event?.RemoveListener(action);
 }
Exemple #30
0
 public void RemoveListener(UnityAction action) {
     unityEvent?.RemoveListener(action);
 }