public override string[] GetUnManagedAssetListData() { if (!string.IsNullOrEmpty(this.TextID)) { this.LoadTextData(); if (!string.IsNullOrEmpty(this.mVoiceID)) { return(EventAction.GetUnManagedStreamAssets(Event2dAction_Dialog.GetIDPair(this.mVoiceID), false)); } } return((string[])null); }
public override void OnActivate() { if (Object.op_Inequality((Object)this.mBubble, (Object)null) && !((Component)this.mBubble).get_gameObject().get_activeInHierarchy()) { for (int index = 0; index < EventDialogBubbleCustom.Instances.Count && Object.op_Inequality((Object)EventDialogBubbleCustom.Instances[index], (Object)this.mBubble); ++index) { if (EventDialogBubbleCustom.Instances[index].BubbleID == this.ActorID) { EventDialogBubbleCustom.Instances[index].Close(); } } ((Component)this.mBubble).get_gameObject().SetActive(true); } if (Object.op_Inequality((Object)this.mBubble, (Object)null)) { if (!string.IsNullOrEmpty(this.mVoiceID)) { string[] idPair = Event2dAction_Dialog.GetIDPair(this.mVoiceID); if (idPair != null) { this.mBubble.VoiceSheetName = idPair[0]; this.mBubble.VoiceCueName = idPair[1]; } } ((Component)this.mBubble).get_transform().SetAsLastSibling(); RectTransform transform1 = ((Component)this.mBubble).get_transform() as RectTransform; for (int index = 0; index < EventDialogBubbleCustom.Instances.Count; ++index) { RectTransform transform2 = ((Component)EventDialogBubbleCustom.Instances[index]).get_transform() as RectTransform; if (Object.op_Inequality((Object)transform1, (Object)transform2)) { Rect rect = transform1.get_rect(); // ISSUE: explicit reference operation if (((Rect)@rect).Overlaps(transform2.get_rect())) { EventDialogBubbleCustom.Instances[index].Close(); } } } if (string.IsNullOrEmpty(this.mPlayerName)) { this.mBubble.SetName(this.mUnit == null ? "???" : this.mUnit.name); } else { this.mBubble.SetName(this.mPlayerName); } this.mBubble.SetBody(this.mTextData); this.mBubble.Open(); } if (EventStandCharaController2.Instances != null && EventStandCharaController2.Instances.Count > 0) { using (List <EventStandCharaController2> .Enumerator enumerator = EventStandCharaController2.Instances.GetEnumerator()) { while (enumerator.MoveNext()) { EventStandCharaController2 current = enumerator.Current; if (current.CharaID == this.CharaID) { if (!current.IsClose) { ((Component)current).get_transform().SetSiblingIndex(((Component)this.mBubble).get_transform().GetSiblingIndex() - 1); if (!string.IsNullOrEmpty(this.Emotion)) { current.UpdateEmotion(this.Emotion); } } } else if (!current.IsClose) { ; } } } } if (!this.Async) { return; } this.ActivateNext(); }