2024-11-13 13:55:36 +08:00
|
|
|
using System;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace AxibugEmuOnline.Client
|
|
|
|
{
|
|
|
|
public class OverlayManager : MonoBehaviour
|
|
|
|
{
|
|
|
|
static OverlayManager s_ins;
|
|
|
|
|
|
|
|
[SerializeField]
|
|
|
|
InputUI m_InputUI;
|
|
|
|
|
|
|
|
private void Awake()
|
|
|
|
{
|
|
|
|
s_ins = this;
|
|
|
|
|
|
|
|
m_InputUI.gameObject.SetActive(false);
|
|
|
|
}
|
|
|
|
|
2024-11-28 16:33:00 +08:00
|
|
|
public static InputUI Input(Action<string> callback, string placeHolder, string defaultText)
|
2024-11-13 13:55:36 +08:00
|
|
|
{
|
2024-11-28 16:33:00 +08:00
|
|
|
s_ins.m_InputUI.Show((callback, placeHolder, defaultText));
|
2024-11-13 13:55:36 +08:00
|
|
|
|
|
|
|
return s_ins.m_InputUI;
|
|
|
|
}
|
2024-11-28 16:33:00 +08:00
|
|
|
|
|
|
|
public static void PopMsg(string msg)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2024-11-13 13:55:36 +08:00
|
|
|
}
|
|
|
|
}
|