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); }
private NrCharBase GetActor(string ActorName) { MiniDramaActorController miniDramaActorController = null; if (this.m_ActorControllerList.TryGetValue(ActorName, out miniDramaActorController)) { return(miniDramaActorController.GetCharBase()); } return(null); }