using UnityEngine; using XGame.Framework.Asyncs; namespace XGame.Framework.UI { public interface IUIModule { Camera Camera { get; } Canvas GetCanvas(UILayer layer); IAsync OpenAsync(UIKey uikey, object intent = null); /// /// 关闭UI /// /// /// 是否销毁 void Close(UIKey uikey, bool isDestroy = false); IAsync Preload(UIKey uikey); /// /// 是否已开启 /// /// /// bool IsOpened(UIKey uikey); } }