public override string[] GetUnManagedAssetListData()
 {
     if (!string.IsNullOrEmpty(this.TextID))
     {
         this.LoadTextData();
         if (!string.IsNullOrEmpty(this.mVoiceID))
         {
             return(EventAction.GetUnManagedStreamAssets(EventAction_Dialog2.GetIDPair(this.mVoiceID), false));
         }
     }
     return((string[])null);
 }
示例#2
0
 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 < EventDialogBubble.Instances.Count && Object.op_Inequality((Object)EventDialogBubble.Instances[index], (Object)this.mBubble); ++index)
         {
             if (EventDialogBubble.Instances[index].BubbleID == this.ActorID)
             {
                 EventDialogBubble.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 = EventAction_Dialog2.GetIDPair(this.mVoiceID);
             if (idPair != null)
             {
                 this.mBubble.VoiceSheetName = idPair[0];
                 this.mBubble.VoiceCueName   = idPair[1];
             }
         }
         RectTransform transform1 = ((Component)this.mBubble).get_transform() as RectTransform;
         for (int index = 0; index < EventDialogBubble.Instances.Count; ++index)
         {
             RectTransform transform2 = ((Component)EventDialogBubble.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()))
                 {
                     EventDialogBubble.Instances[index].Close();
                 }
             }
         }
         this.mBubble.SetName(this.mUnit == null ? "???" : this.mUnit.name);
         this.mBubble.SetBody(this.mTextData);
         if (this.mPortraitResource != null && this.mPortraitResource.isDone)
         {
             if (this.mPortraitResource.asset is PortraitSet)
             {
                 this.mBubble.PortraitSet   = (PortraitSet)this.mPortraitResource.asset;
                 this.mBubble.CustomEmotion = (Texture2D)null;
             }
             else
             {
                 this.mBubble.CustomEmotion = (Texture2D)this.mPortraitResource.asset;
             }
         }
         this.mBubble.Emotion = this.Emotion;
         this.mBubble.Open();
     }
     if (!this.Async)
     {
         return;
     }
     this.ActivateNext();
 }