void OnDestroy() { AmbitionApp.Unsubscribe(GameMessages.FADE_OUT, HandleFadeOut); AmbitionApp.Unsubscribe(GameMessages.FADE_IN, HandleFadeIn); AmbitionApp.Unsubscribe <float>(GameMessages.FADE_OUT, HandleFadeOut); AmbitionApp.Unsubscribe <float>(GameMessages.FADE_IN, HandleFadeIn); }
void OnDestroy() { AmbitionApp.Unsubscribe <MomentVO>(HandleMoment); AmbitionApp.Unsubscribe <IncidentVO>(IncidentMessages.START_INCIDENT, HandleIncident); AmbitionApp.Unsubscribe <string>(IncidentMessages.END_INCIDENT, HandleEndIncident); AmbitionApp.Unsubscribe <TransitionVO[]>(HandleTransitions); }
void OnDisable() { AmbitionApp.Unsubscribe <GuestVO>(PartyMessages.GUEST_TARGETED, HandleTargeted); AmbitionApp.Unsubscribe <GuestVO>(PartyMessages.GUEST_SELECTED, HandleSelected); AmbitionApp.Unsubscribe <RemarkVO>(HandleRemark); AmbitionApp.Unsubscribe <int>(GameConsts.INTOXICATION, HandleIntoxication); StopAllCoroutines(); }
private void HandleMap(MapVO map) { if (map != null) { DrawMap(_model.Map); AmbitionApp.Unsubscribe <MapVO>(HandleMap); } }
private void OnDestroy() { AmbitionApp.Unsubscribe <string>(GameMessages.SCENE_LOADED, HandleSceneLoaded); AmbitionApp.Unsubscribe <string>(GameMessages.DIALOG_OPENED, HandleDialogOpened); AmbitionApp.Unsubscribe <string>(GameMessages.DIALOG_CLOSED, HandleDialogClosed); AmbitionApp.Unsubscribe(GameMessages.FADE_OUT, HandleFadeOut); AmbitionApp.Unsubscribe <float>(GameMessages.FADE_OUT, HandleFadeOut); }
void OnDestroy() { AmbitionApp.Unsubscribe(PartyMessages.SHOW_MAP, ShowMap); AmbitionApp.Unsubscribe(PartyMessages.SHOW_ROOM, Lock); AmbitionApp.Unsubscribe <string>(GameMessages.DIALOG_CLOSED, Unlock); _buttons.Clear(); _buttons = null; }
void OnDestroy() { AmbitionApp.Unsubscribe(GameMessages.FADE_OUT, HandleFadeOut); AmbitionApp.Unsubscribe(GameMessages.FADE_IN, HandleFadeIn); AmbitionApp.Unsubscribe <float>(GameMessages.FADE_OUT, HandleFadeOut); AmbitionApp.Unsubscribe <float>(GameMessages.FADE_IN, HandleFadeIn); AmbitionApp.Unsubscribe(GameMessages.INTERRUPT_FADE, HandleInterruptFade); }
private void HandleReward(CommodityVO reward) { if ((reward.Type == Reward) && ((OnGain && reward.Value > 0) || (OnLoss && reward.Value < 0) || (!OnLoss && !OnGain))) { AmbitionApp.Unsubscribe <CommodityVO>(HandleReward); AmbitionApp.Unsubscribe <CommodityVO[]>(HandleRewards); AmbitionApp.Subscribe <float>(GameMessages.FADE_OUT, HandleFade); StartCoroutine(ShowTooltip(DisplayDuration)); } }
private void OnFadeOut() { if (_roomView == null) { _roomView = Instantiate(RoomView, this.transform); } _roomView.SetActive(true); Fader.transform.SetAsLastSibling(); AmbitionApp.Unsubscribe(GameMessages.FADE_OUT_COMPLETE, OnFadeOut); AmbitionApp.SendMessage(GameMessages.FADE_IN); }
public void Dispose() { AmbitionApp.Unsubscribe <FMODEvent>(AudioMessages.PLAY, HandlePlaySound); AmbitionApp.Unsubscribe <FMODEvent>(AudioMessages.PLAY_AMBIENT, HandlePlayAmbient); AmbitionApp.Unsubscribe(AudioMessages.STOP_AMBIENT, HandleStopAmbient); AmbitionApp.Unsubscribe(AudioMessages.STOP_AMBIENT_NOW, HandleStopAmbientNow); AmbitionApp.Unsubscribe <FMODEvent>(AudioMessages.PLAY_MUSIC, HandlePlayMusic); AmbitionApp.Unsubscribe(AudioMessages.STOP_MUSIC, HandleStopMusic); AmbitionApp.Unsubscribe(AudioMessages.STOP_MUSIC_NOW, HandleStopMusicNow); _banks.ForEach(RuntimeManager.UnloadBank); }
void OnDestroy() { foreach (string trigger in TriggerFadeIn) { AmbitionApp.Unsubscribe(trigger, HandleFadeIn); } foreach (string trigger in TriggerFadeOut) { AmbitionApp.Unsubscribe(trigger, HandleFadeOut); } }
void OnDestroy() { AmbitionApp.Unsubscribe(PartyMessages.SHOW_ROOM, ConversationMusicStart); AmbitionApp.Unsubscribe(PartyMessages.END_CONVERSATION, ConversationVictorySound); AmbitionApp.Unsubscribe(PartyMessages.FLEE_CONVERSATION, ConversationDefeatSound); AmbitionApp.Unsubscribe <GuestVO>(PartyMessages.GUEST_REACTION_POSITIVE, GuestPositiveReaction); AmbitionApp.Unsubscribe <GuestVO>(PartyMessages.GUEST_REACTION_NEUTRAL, GuestNeutralReaction); AmbitionApp.Unsubscribe <GuestVO>(PartyMessages.GUEST_REACTION_NEGATIVE, GuestNegativeReaction); AmbitionApp.Unsubscribe <GuestVO>(PartyMessages.GUEST_CHARMED, GuestCharmedReaction); AmbitionApp.Unsubscribe <GuestVO>(PartyMessages.GUEST_OFFENDED, GuestPutOffReaction); AmbitionApp.Unsubscribe <GuestVO>(PartyMessages.GUEST_REACTION_BORED, GuestBoredReaction); AmbitionApp.Unsubscribe(PartyMessages.SHOW_MAP, HandleShowMap); AmbitionApp.Unsubscribe <RoomVO>(MapMessage.GO_TO_ROOM, HandleRoomSFX); }
private void HandleRoom(RoomVO room) { if (room == _room) { Destroy(gameObject); } else { bool active = _room.IsAdjacentTo(room); if (active) { AmbitionApp.Subscribe(GameMessages.FADE_IN, HandleReveal); } else { gameObject.SetActive(false); AmbitionApp.Unsubscribe(GameMessages.FADE_IN, HandleReveal); } } }
protected void Cleanup() { AmbitionApp.Unsubscribe <GuestVO[]>(HandleGuests); AmbitionApp.Unsubscribe <GuestVO>(HandleGuest); }
void OnDestroy() { AmbitionApp.Unsubscribe <DateTime>(HandleDate); }
private void OnDestroy() { AmbitionApp.Unsubscribe(InventoryMessages.PEDDLE_GOSSIP, PopulateInventory); AmbitionApp.Unsubscribe(InventoryMessages.SELL_ITEM, PopulateInventory); AmbitionApp.Unsubscribe <string>(InventoryMessages.SORT_INVENTORY, SortInventory); }
void OnDisable() { AmbitionApp.Unsubscribe <int>(PartyMessages.ROUND, HandleRound); }
private void OnDisable() { AmbitionApp.Unsubscribe(GameMessages.LOCK_UI, Lock); AmbitionApp.Unsubscribe(GameMessages.UNLOCK_UI, Unlock); }
void OnDestroy() { AmbitionApp.Unsubscribe <Gossip>(InventoryMessages.DISPLAY_GOSSIP, HandleGossipStats); AmbitionApp.Unsubscribe(InventoryMessages.PEDDLE_GOSSIP, BlankStats); //Gotta wipe the slate once the item's been moved AmbitionApp.Unsubscribe(InventoryMessages.SELL_GOSSIP, BlankStats); }
void OnDisable() { AmbitionApp.Unsubscribe <int>(GameConsts.DRINK, HandleDrink); }
void OnDestroy() { AmbitionApp.Unsubscribe <ItemVO>(InventoryMessages.DISPLAY_ITEM, HandleItemDisplay); AmbitionApp.Unsubscribe(InventoryMessages.BUY_ITEM, BlankStats); AmbitionApp.Unsubscribe(InventoryMessages.SELL_ITEM, BlankStats); }
void OnDestroy() { AmbitionApp.Unsubscribe <int>(GameConsts.LIVRE, HandleLivre); }
void OnDestroy() { AmbitionApp.Unsubscribe(PartyMessages.SHOW_ROOM, HandleTutorialRoom); }
void OnDestroy() { AmbitionApp.Unsubscribe <RemarkVO[]>(HandleHand); AmbitionApp.Unsubscribe <RemarkVO>(HandleRemark); }
void OnDisable() { AmbitionApp.Unsubscribe <PartyVO>(HandlePartyUpdated); AmbitionApp.Calendar.Unobserve(HandleRefresh); AmbitionApp.Unsubscribe <RendezVO>(HandleRendezvous); }
void OnDestroy() { AmbitionApp.Unsubscribe <TransitionVO[]>(HandleTransitions); _btn.onClick.RemoveAllListeners(); }
public override void Dispose() => AmbitionApp.Unsubscribe <RoomVO>(MapMessage.GO_TO_ROOM, HandleRoom);
void OnDestroy() { AmbitionApp.Unsubscribe <PartyVO>(HandleParty); }
void OnDestroy() { AmbitionApp.Unsubscribe <DateTime>(CalendarMessages.VIEW_MONTH, HandleMonth); AmbitionApp.Unsubscribe <PartyVO>(HandlePartyUpdated); }
void OnDestroy() { AmbitionApp.Unsubscribe(CalendarMessages.NEXT_DAY, HandleLeaveLocation); }