biography-of-lijie/Assets/GameMain/Scripts/UI/AIChatEntryRuntime.cs

29 lines
681 B
C#

namespace UI
{
public static class AIChatEntryRuntime
{
private static AIChatEntryFormController s_entryController;
private static AIChatEntryFormContext s_entryContext;
public static void EnsureOpen()
{
if (GameEntry.UI == null)
{
return;
}
if (s_entryController == null)
{
s_entryController = new AIChatEntryFormController();
}
if (s_entryContext == null)
{
s_entryContext = new AIChatEntryFormContext();
}
s_entryController.OpenUI(s_entryContext);
}
}
}