protected override void OnDestroy() { base.OnDestroy(); if (catalogChannel != null) { catalogChannel.RemoveAllListeners(); } Service.Get <EventDispatcher>().RemoveListener <CatalogServiceEvents.ItemPurchaseCompleteEvent>(onPurchaseComplete); }
private void OnDestroy() { if (clothingDesignerEventChannel != null) { clothingDesignerEventChannel.RemoveAllListeners(); } if (customizationEventChannel != null) { clothingDesignerEventChannel.RemoveAllListeners(); } }
private void OnDisable() { if (model != null && !model.LocalPlayerInfo.IsNull && Service.Get <CPDataEntityCollection>().TryGetComponent <AvatarDetailsData>(model.LocalPlayerInfo, out var component)) { DCustomEquipment[] currentAvatarEquipment = model.GetCurrentAvatarEquipment(); if (component.Outfit != currentAvatarEquipment) { new SaveOutfitToWearCMD(model.InventoryData.CurrentAvatarEquipment.ToArray(), currentAvatarEquipment).Execute(); } } if (IsInitialized) { mainEventChannel.RemoveAllListeners(); } }
private void OnDestroy() { DataEntityHandle entityByType = dataEntityCollection.GetEntityByType <PlayerCardData>(); PlayerCardData component = dataEntityCollection.GetComponent <PlayerCardData>(entityByType); component.IsPlayerCardShowing = false; if (eventChannel != null) { eventChannel.RemoveAllListeners(); } if (dataEntityCollection != null) { dataEntityCollection.EventDispatcher.RemoveListener <DataEntityEvents.ComponentAddedEvent <PresenceData> >(onPresenceDataAdded); dataEntityCollection.EventDispatcher.RemoveListener <DataEntityEvents.ComponentAddedEvent <ProfileData> >(onProfileDataAdded); dataEntityCollection.EventDispatcher.RemoveListener <DataEntityEvents.ComponentAddedEvent <MembershipData> >(onMembershipDataAdded); dataEntityCollection.EventDispatcher.RemoveListener <DataEntityEvents.ComponentAddedEvent <AvatarDetailsData> >(onAvatarDetailsDataAdded); } if (coinsData != null) { coinsData.OnCoinsChanged -= setCoins; } if (presenceData != null) { presenceData.PresenceDataUpdated -= onPresenceDataUpdated; } if (profileData != null) { profileData.ProfileDataUpdated -= onProfileDataUpdated; } if (membershipData != null) { membershipData.MembershipDataUpdated -= onMembershipDataUpdated; } this.OnHandleSet = null; }
protected override void OnDestroy() { base.OnDestroy(); eventChannel.RemoveAllListeners(); catalogEventChannel.RemoveAllListeners(); DestoryScroller(); }
private bool onStartFinderBulb(ScavengerHuntEvents.StartFinderBulb evt) { if (prop.OwnerId == evt.LocalPlayerId || prop.OwnerId == evt.OtherPlayerId) { itemIdToItemGameObject = evt.ItemIdToItemGameObject; elapsedTime = 0f; isBulbBlinking = true; eventChannel.AddListener <ScavengerHuntEvents.RemoveMarble>(onRemoveMarble); CoroutineRunner.Start(blinkBulb(), this, "blinkBulb"); } else { eventChannel.RemoveAllListeners(); } return(false); }
public void OnDestroy() { if (eventChannel != null) { eventChannel.RemoveAllListeners(); } }
private void removeListeners() { if (eventChannel != null) { eventChannel.RemoveAllListeners(); } }
public override void OnExit() { base.OnExit(); if (eventChannel != null) { eventChannel.RemoveAllListeners(); } }
private void OnDestroy() { if (eventChannel != null) { eventChannel.RemoveAllListeners(); } ClearSpeechBubbles(); }
private void OnDestroy() { if (eventChannel != null) { eventChannel.RemoveAllListeners(); } ClubPenguin.Core.SceneRefs.Get <CameraRenderingControl>().EnableRendering(); }
public void OnDestroy() { if (localPresenceData != null) { localPresenceData.IsNotInCurrentRoomsScene = false; } events.RemoveAllListeners(); }
public void OnDestroy() { eventChannel.RemoveAllListeners(); if (propUser != null) { propUser.EPropRemoved -= onPropRemoved; } }
private void OnDestroy() { eventChannel.RemoveAllListeners(); if (hintState == QuestHintState.Waiting) { PlayerPrefs.SetFloat("QUEST_HINT_TIME", hintTimer); } }
private void OnDestroy() { if (eventChannel != null) { eventChannel.RemoveAllListeners(); } pooledScrollRect.ObjectAdded -= onObjectAdded; }
protected override void OnDestroy() { base.OnDestroy(); if (eventChannel != null) { eventChannel.RemoveAllListeners(); } }
public void OnDestroy() { eventChannel.RemoveAllListeners(); if (trayResizeCoroutine != null && !trayResizeCoroutine.Disposed) { trayResizeCoroutine.Cancel(); } }
private void OnDestroy() { eventChannel.RemoveAllListeners(); OnTextChanged = null; ESendButtonClicked = null; EEmojiButtonClicked = null; EKeyboardButtonClicked = null; }
protected override void OnDestroy() { base.OnDestroy(); if (eventChannel != null) { eventChannel.RemoveAllListeners(); } onValueChanged.RemoveListener(dispatchValueChanged); }
protected override void onDestroy() { base.onDestroy(); eventChannel.RemoveAllListeners(); if (inputButton != null && isLockedByActionSequence) { inputButton.Unlock(); } }
private void OnDestroy() { eventChannel.RemoveAllListeners(); if (cellPhoneAnim != null) { cellPhoneAnim.GetComponent <CellPhoneIntroAnimation>().EIntroAnimCompleted -= onIntroAnimComplete; cellPhoneAnim.GetComponent <CellPhoneIntroAnimation>().EOutroAnimCompleted -= onOutroAnimComplete; } }
public override void OnDestroy() { base.OnDestroy(); CoroutineRunner.StopAllForOwner(this); CancelInvoke(); if (eventChannel != null) { eventChannel.RemoveAllListeners(); } }
protected virtual void OnDestroy() { eventChannel.RemoveAllListeners(); if (stateDataListener != null) { stateDataListener.StopListening(); } StopListeningToStateChange(); CoroutineRunner.StopAllForOwner(this); }
private void OnDestroy() { CancelInvoke(); CoroutineRunner.StopAllForOwner(this); UnityEngine.Object.Destroy(audioPrefab); if (eventChannel != null) { eventChannel.RemoveAllListeners(); } }
private void OnDestroy() { if (eventChannel != null) { eventChannel.RemoveAllListeners(); } if (itemSavingEffectInstance != null) { Object.Destroy(itemSavingEffectInstance); } }
private void OnDestroy() { if (eventChannel != null) { eventChannel.RemoveAllListeners(); } if (avatarViewDistinct != null) { avatarViewDistinct.Model.OutfitSet -= onOutfitSet; } }
private void OnDestroy() { CoroutineRunner.StopAllForOwner(this); eventChannel.RemoveAllListeners(); updateTimer.Stop(); timerTooltip.GetComponent <Button>().onClick.RemoveListener(onTooltipClicked); if (tooltipInputButton != null) { UnityEngine.Object.Destroy(tooltipInputButton); } }
private void OnDestroy() { EditButton.onClick.RemoveAllListeners(); BackButton.onClick.RemoveAllListeners(); EditableItemPooledScrollRect.ObjectAdded -= onObjectAdded; UnityEngine.Object.Destroy(editableItemInstance); if (eventChannel != null) { eventChannel.RemoveAllListeners(); } }
public void Destroy() { Model.ClearAllEquipment(); if (eventChannel != null) { eventChannel.RemoveAllListeners(); } Model.EquipmentEjected -= onEquipmentEjected; avatarView.OnReady -= onViewReady; avatarView.OnBusy -= onViewBusy; }
private void OnDestroy() { if (eventChannel != null) { eventChannel.RemoveAllListeners(); } if (controlsScreenData != null) { controlsScreenData.OnControlsScreenActiveChanged -= onControlsScreenActiveChanged; } }