//This is retarded public void UnregisterAllEvents() { scoreSystem?.onScoreChanged.RemoveListener(ChangeScore); hitMissDeterminer?.onHit.RemoveListener(RegisterHit); hitMissDeterminer?.onMiss.RemoveListener(RegisterMiss); onKillEvent?.RemoveListener(RegisterKill); timerTickedEvent?.RemoveListener(UpdateTimeText); }
public static void RemoveScaleListener(UnityAction updateScaleCallback) { m_UpdateValues.RemoveListener(updateScaleCallback); }
public void UnregisterPreAction(UnityAction action) { _preChange.RemoveListener(action); }
/// <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); }
/// <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(); }
public void UnregisterFinal(UnityAction act) //unregister to all instances of this event finishing { uEventFinal.RemoveListener(act); }
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); }
private void OnDestroy() { _onPlayerEntersRoom.RemoveListener(Respawn); }
void OnDestroy() { openbook.RemoveListener(SetOpenFalse); purchaseButton.onClick.RemoveListener(ButtonPressed); }
public void UnRegister(UnityAction action) { desiredEvent?.RemoveListener(action); }
internal void RemoveOnSettingsUpdatedListener(UnityAction listener) { onSettingsUpdated.RemoveListener(listener); }
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); }
public void Unsubscribe(UnityAction action) { _event.RemoveListener(action); }
public void RemovePausedEvent(UnityAction action) { _pausedEvent.RemoveListener(action); }
public void UnregisterClosure(UnityAction act) //unregister to action finished event { uEventClose.RemoveListener(act); }
public void RemoveStoppedEvent(UnityAction action) { _stoppedEvent.RemoveListener(action); }
public void Unsubscribe(UnityAction callback) { _onTouchEvent.RemoveListener(callback); }
public void RemoveEndReachedEvent(UnityAction action) { _endReachedEvent.RemoveListener(action); }
public static void UnRegisterUpdate(UnityAction act) { StaticUpdate.RemoveListener(act); }
public void RemoveEncounteredErrorEvent(UnityAction action) { _encounteredErrorEvent.RemoveListener(action); }
public void UnregisterAction(UnityAction action) { _onChange.RemoveListener(action); }
public void UnregisterPostchangeEvent(UnityAction action) { _postchangeEvent.RemoveListener(action); }
public void UnregisterListener(UnityAction action) { @event?.RemoveListener(action); }
public void RemoveListener(UnityAction action) { unityEvent?.RemoveListener(action); }