public override void OnActivate() { if (string.IsNullOrEmpty(this.ActorID)) { for (int index = EventDialogBubbleCustom.Instances.Count - 1; index >= 0; --index) { EventDialogBubbleCustom.Instances[index].Close(); } } else { this.mBubble = EventDialogBubbleCustom.Find(this.ActorID); if (Object.op_Inequality((Object)this.mBubble, (Object)null)) { this.mBubble.Close(); } } this.ActivateNext(); }
public override void PreStart() { if (!Object.op_Equality((Object)this.mBubble, (Object)null)) { return; } if (!string.IsNullOrEmpty(this.UnitID)) { this.ActorID = this.UnitID; } this.mBubble = EventDialogBubbleCustom.Find(this.ActorID); if (this.mBubbleResource != null && Object.op_Equality((Object)this.mBubble, (Object)null)) { this.mBubble = Object.Instantiate(this.mBubbleResource.asset) as EventDialogBubbleCustom; ((Component)this.mBubble).get_transform().SetParent(((Component)this.ActiveCanvas).get_transform(), false); this.mBubble.BubbleID = this.ActorID; ((Component)this.mBubble).get_transform().SetAsLastSibling(); ((Component)this.mBubble).get_gameObject().SetActive(false); } this.mBubble.AdjustWidth(this.mTextData); this.mBubble.Anchor = EventDialogBubbleCustom.Anchors.BottomCenter; }
public override void OnActivate() { if (string.IsNullOrEmpty(this.ActorID)) { for (int index = EventDialogBubbleCustom.Instances.Count - 1; index >= 0; --index) { EventDialogBubbleCustom.Instances[index].Close(); } } else { this.mBubble = EventDialogBubbleCustom.Find(this.ActorID); if (Object.op_Inequality((Object)this.mBubble, (Object)null)) { this.mBubble.Close(); } } this.fadeInList.Clear(); this.fadeInParticleList.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) { 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; } } foreach (Component componentsInChild in (GameObjectID[])((Component)current).get_gameObject().GetComponentsInChildren <GameObjectID>()) { CanvasGroup component = (CanvasGroup)componentsInChild.GetComponent <CanvasGroup>(); if (Object.op_Inequality((Object)component, (Object)null) && (double)component.get_alpha() != 1.0) { this.fadeInParticleList.Add(component); } } } } } } if (!this.IsFading) { this.ActivateNext(); } else { this.fadingTime = this.FadeTime; if (!this.Async) { return; } this.ActivateNext(true); } }