public void ShowCaption(string ActorName, string Talk)
        {
            UI_MiniDramaCaption uI_MiniDramaCaption = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MINIDRAMACAPTION_DLG) as UI_MiniDramaCaption;

            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController != null)
            {
                string name = string.Empty;
                if (actorController.GetCharBase().GetID() == 1)
                {
                    name = actorController.GetCharBase().GetCharName();
                }
                else
                {
                    name = actorController.GetCharBase().GetCharKindInfo().GetName();
                }
                uI_MiniDramaCaption.SetName(name);
            }
            else
            {
                uI_MiniDramaCaption.SetName(string.Empty);
            }
            uI_MiniDramaCaption.ShowBG(true);
            uI_MiniDramaCaption.SetTalk(Talk);
        }
        public void CloseAllActor()
        {
            MiniDramaActorController actorController = this.GetActorController(EventTriggerMiniDrama.ActorManager.GeneralName);

            if (actorController == null)
            {
                return;
            }
            actorController.Show(true);
            actorController.Fade(0.5f, 1f, 3.2f);
            foreach (string current in this.m_ActorControllerList.Keys)
            {
                if (!(current == EventTriggerMiniDrama.ActorManager.GeneralName))
                {
                    MiniDramaActorController miniDramaActorController = this.m_ActorControllerList[current];
                    if (!(miniDramaActorController == null))
                    {
                        if (miniDramaActorController.RealActor)
                        {
                            miniDramaActorController.Fade(0.8f, 0f, 3.2f);
                        }
                    }
                }
            }
        }
        public void RecoveryGeneral()
        {
            MiniDramaActorController actorController = this.GetActorController(EventTriggerMiniDrama.ActorManager.GeneralName);

            if (actorController == null)
            {
                return;
            }
        }
        public void Stop(string ActorName)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController != null)
            {
                actorController.StopMove();
            }
        }
        public void Run(string ActorName, float x, float y, float time)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController != null)
            {
                actorController.Run(x, y, time);
            }
        }
        public GameObject GetGameObject(string ActorName)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController == null)
            {
                return(null);
            }
            return(actorController.transform.parent.gameObject);
        }
        public Vector3 GetPosition(string ActorName)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController == null)
            {
                return(Vector3.zero);
            }
            return(actorController.transform.position);
        }
        public void HideChatEmoticon(string ActorName)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController == null)
            {
                return;
            }
            actorController.HideChatEmoticon();
        }
        private MiniDramaActorController GetActorController(string ActorName)
        {
            MiniDramaActorController result = null;

            if (this.m_ActorControllerList.TryGetValue(ActorName, out result))
            {
                return(result);
            }
            return(null);
        }
        public void ShowTalk(string ActorName, string Talk, float TalkTime)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController == null)
            {
                return;
            }
            actorController.Talk(Talk, TalkTime);
        }
        public void FadeActor(string ActorName, float StartValue, float EndValue, float ActionTime)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController == null)
            {
                return;
            }
            actorController.Fade(StartValue, EndValue, ActionTime);
        }
        public void ShowActor(string ActorName, bool Show)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController == null)
            {
                return;
            }
            actorController.Show(Show);
        }
        private NrCharBase GetActor(string ActorName)
        {
            MiniDramaActorController miniDramaActorController = null;

            if (this.m_ActorControllerList.TryGetValue(ActorName, out miniDramaActorController))
            {
                return(miniDramaActorController.GetCharBase());
            }
            return(null);
        }
        public void ShowChatEmoticon(string ActorName, string EmoticonText, float TalkTime)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController == null)
            {
                return;
            }
            actorController.ChatEmoticon(EmoticonText, TalkTime);
        }
        public float AniActor(string ActorName, string Ani)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController == null)
            {
                return(0f);
            }
            return(actorController.Ani(Ani));
        }
        public void RotateActor(string ActorName, float Angle, float time)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController == null)
            {
                return;
            }
            actorController.Rotate(Angle, time);
        }
    public GameObject GetActorObject(string ActorName)
    {
        MiniDramaActorController controller = this._ActorManger.GetController(ActorName);

        if (controller != null)
        {
            return(controller.GetGameObject());
        }
        return(null);
    }
        public void DelActor(string ActorName)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            if (actorController == null)
            {
                return;
            }
            actorController.Del();
            this.m_ActorControllerList.Remove(ActorName);
        }
        public bool AddActor(string ActorName, NkCharIDInfo IDInfo, bool Actor, bool bHide)
        {
            if (this.IsActor(ActorName))
            {
                TsLog.LogWarning(string.Format("[EventTriggerMiniDrama] ActorManager : Have Equal CharName {0}", ActorName), new object[0]);
                return(false);
            }
            GameObject gameObject = new GameObject(typeof(MiniDramaActorController).Name);

            TsSceneSwitcher.Instance.Collect(TsSceneSwitcher.ESceneType.WorldScene, gameObject);
            MiniDramaActorController miniDramaActorController = gameObject.AddComponent <MiniDramaActorController>();

            miniDramaActorController.SetChar(ActorName, IDInfo, Actor, bHide);
            this.m_ActorControllerList.Add(ActorName, miniDramaActorController);
            return(true);
        }
        public bool IsMove(string ActorName)
        {
            MiniDramaActorController actorController = this.GetActorController(ActorName);

            return(!(actorController == null) && actorController.IsMove());
        }