Esempio n. 1
0
 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();
     }
 }
Esempio n. 3
0
 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();
     }
 }
Esempio n. 4
0
        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;
        }
Esempio n. 5
0
 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();
     }
 }
Esempio n. 8
0
 private void removeListeners()
 {
     if (eventChannel != null)
     {
         eventChannel.RemoveAllListeners();
     }
 }
Esempio n. 9
0
 public override void OnExit()
 {
     base.OnExit();
     if (eventChannel != null)
     {
         eventChannel.RemoveAllListeners();
     }
 }
Esempio n. 10
0
 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();
 }
Esempio n. 13
0
 public void OnDestroy()
 {
     eventChannel.RemoveAllListeners();
     if (propUser != null)
     {
         propUser.EPropRemoved -= onPropRemoved;
     }
 }
Esempio n. 14
0
 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();
     }
 }
Esempio n. 17
0
	public void OnDestroy()
	{
		eventChannel.RemoveAllListeners();
		if (trayResizeCoroutine != null && !trayResizeCoroutine.Disposed)
		{
			trayResizeCoroutine.Cancel();
		}
	}
Esempio n. 18
0
 private void OnDestroy()
 {
     eventChannel.RemoveAllListeners();
     OnTextChanged          = null;
     ESendButtonClicked     = null;
     EEmojiButtonClicked    = null;
     EKeyboardButtonClicked = null;
 }
Esempio n. 19
0
 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();
     }
 }
Esempio n. 21
0
 private void OnDestroy()
 {
     eventChannel.RemoveAllListeners();
     if (cellPhoneAnim != null)
     {
         cellPhoneAnim.GetComponent <CellPhoneIntroAnimation>().EIntroAnimCompleted -= onIntroAnimComplete;
         cellPhoneAnim.GetComponent <CellPhoneIntroAnimation>().EOutroAnimCompleted -= onOutroAnimComplete;
     }
 }
Esempio n. 22
0
 public override void OnDestroy()
 {
     base.OnDestroy();
     CoroutineRunner.StopAllForOwner(this);
     CancelInvoke();
     if (eventChannel != null)
     {
         eventChannel.RemoveAllListeners();
     }
 }
Esempio n. 23
0
 protected virtual void OnDestroy()
 {
     eventChannel.RemoveAllListeners();
     if (stateDataListener != null)
     {
         stateDataListener.StopListening();
     }
     StopListeningToStateChange();
     CoroutineRunner.StopAllForOwner(this);
 }
Esempio n. 24
0
 private void OnDestroy()
 {
     CancelInvoke();
     CoroutineRunner.StopAllForOwner(this);
     UnityEngine.Object.Destroy(audioPrefab);
     if (eventChannel != null)
     {
         eventChannel.RemoveAllListeners();
     }
 }
Esempio n. 25
0
 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;
     }
 }
Esempio n. 27
0
 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();
     }
 }
Esempio n. 29
0
 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;
     }
 }