public ActorTalk(MiniDramaActorController.Actor kActor, ref UI_MiniDramaTalk TalkUI, string strText, float ActionTime)
 {
     if (TalkUI == null)
     {
     }
     this._Talk = TalkUI;
     this._Talk.Init(kActor.m_ActorBase);
     this._Talk.SetTalk(strText, ActionTime);
 }
 public void Del()
 {
     if (this._Talk != null)
     {
         this._Talk.Close();
         this._Talk = null;
     }
     if (this._Emoticon != null)
     {
         this._Emoticon.Close();
         this._Emoticon = null;
     }
     this._ActorAction.Clear();
     this._Actor.Dispose();
     if (this._Actor.m_RealActor)
     {
         if (this._Actor.m_ActorBase != null)
         {
             this._Actor.m_ActorBase.SetShowHide3DModel(false, false, false);
         }
         NrTSingleton <NkCharManager> .Instance.DeleteChar(this._IDInfo.m_nClientID);
     }
     else
     {
         NrCharBase charBase = this.GetCharBase();
         if (charBase != null)
         {
             GameObject charObject = charBase.GetCharObject();
             if (MiniDramaActorController.EnableTypeList != null && MiniDramaActorController.EnableTypeList.Length > 0)
             {
                 Type[] enableTypeList = MiniDramaActorController.EnableTypeList;
                 for (int i = 0; i < enableTypeList.Length; i++)
                 {
                     Type          type          = enableTypeList[i];
                     MonoBehaviour monoBehaviour = charObject.GetComponent(type) as MonoBehaviour;
                     if (monoBehaviour != null)
                     {
                         monoBehaviour.enabled = true;
                     }
                 }
             }
             this.Show(true);
         }
         UnityEngine.Object.Destroy(base.gameObject);
     }
 }