public override string[] GetUnManagedAssetListData() { if (!string.IsNullOrEmpty(this.TextID)) { this.LoadTextData(); if (!string.IsNullOrEmpty(this.mVoiceID)) { return(EventAction.GetUnManagedStreamAssets(Event2dAction_Dialog3.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_Dialog3.GetIDPair(this.mVoiceID); if (idPair != null) { this.mBubble.VoiceSheetName = idPair[0]; this.mBubble.VoiceCueName = idPair[1]; } } ((Component)this.mBubble).get_transform().SetAsLastSibling(); this.bubbleTransform = ((Component)this.mBubble).get_transform() as RectTransform; for (int index = 0; index < EventDialogBubbleCustom.Instances.Count; ++index) { RectTransform transform = ((Component)EventDialogBubbleCustom.Instances[index]).get_transform() as RectTransform; if (Object.op_Inequality((Object)this.bubbleTransform, (Object)transform)) { Rect rect = this.bubbleTransform.get_rect(); // ISSUE: explicit reference operation if (((Rect)@rect).Overlaps(transform.get_rect())) { EventDialogBubbleCustom.Instances[index].Close(); } } } this.mBubble.SetName(this.mUnit == null ? "???" : this.mUnit.name); this.mBubble.SetBody(this.mTextData); this.mBubble.Open(); } this.fadeInList.Clear(); this.fadeOutList.Clear(); this.fadeInParticleList.Clear(); this.fadeOutParticleList.Clear(); this.IsFading = false; 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.IsClose) { if (current.CharaID == this.CharaID || this.ContainIgnoreFO(current.CharaID)) { Color white = Color.get_white(); if (Event2dAction_OperateStandChara.CharaColorDic.ContainsKey(current.CharaID)) { white = Event2dAction_OperateStandChara.CharaColorDic[current.CharaID]; } foreach (GameObject standChara in current.StandCharaList) { if (Color.op_Inequality(((Graphic)((EventStandChara2)standChara.GetComponent <EventStandChara2>()).FaceObject.GetComponent <RawImage>()).get_color(), white)) { this.fadeInList.Add(standChara); this.IsFading = true; } } if (this.ActorParticle) { foreach (Component componentsInChild in (GameObjectID[])((Component)current).get_gameObject().GetComponentsInChildren <GameObjectID>()) { CanvasGroup canvasGroup = componentsInChild.RequireComponent <CanvasGroup>(); if ((double)canvasGroup.get_alpha() != 1.0) { this.fadeInParticleList.Add(canvasGroup); } } } int num = ((Component)this.mBubble).get_transform().GetSiblingIndex() - 1; ((Component)current).get_transform().SetSiblingIndex(num); ((Component)current).get_transform().set_localScale(Vector3.op_Multiply(((Component)current).get_transform().get_localScale(), 1f)); if (!string.IsNullOrEmpty(this.Emotion)) { current.UpdateEmotion(this.Emotion); } } else if (((Behaviour)current).get_isActiveAndEnabled()) { Color color = Color.get_white(); if (Event2dAction_OperateStandChara.CharaColorDic.ContainsKey(current.CharaID)) { color = Color.op_Multiply(Event2dAction_OperateStandChara.CharaColorDic[current.CharaID], Color.get_gray()); } foreach (GameObject standChara in current.StandCharaList) { if (Color.op_Inequality(((Graphic)((EventStandChara2)standChara.GetComponent <EventStandChara2>()).FaceObject.GetComponent <RawImage>()).get_color(), color)) { this.fadeOutList.Add(standChara); this.IsFading = true; } } if (this.ActorParticle) { foreach (Component componentsInChild in (GameObjectID[])((Component)current).get_gameObject().GetComponentsInChildren <GameObjectID>()) { CanvasGroup canvasGroup = componentsInChild.RequireComponent <CanvasGroup>(); if ((double)canvasGroup.get_alpha() != 0.0) { this.fadeOutParticleList.Add(canvasGroup); } } } } } } } } if (this.IsFading) { this.fadingTime = this.FadeTime; } this.IsShaking = false; if (Object.op_Inequality((Object)this.mBubble, (Object)null) && (double)this.Duration > 0.0) { this.IsShaking = true; this.originalPvt = new Vector2(0.5f, 0.0f); this.ShakingTime = this.Duration; this.mSeedX = Random.get_value(); this.mSeedY = Random.get_value(); } if (!this.Async) { return; } this.ActivateNext(true); }