IUIModule.cs 520 B

12345678910111213141516171819
  1. using UnityEngine;
  2. using XGame.Framework.Asyncs;
  3. namespace XGame.Framework.UI
  4. {
  5. public interface IUIModule
  6. {
  7. Camera Camera { get; }
  8. Canvas GetCanvas(UILayer layer);
  9. IAsync OpenAsync(UIKey uikey, object intent = null);
  10. /// <summary>
  11. /// 关闭UI
  12. /// </summary>
  13. /// <param name="uikey"></param>
  14. /// <param name="isDestroy">是否销毁</param>
  15. void Close(UIKey uikey, bool isDestroy = false);
  16. IAsync Preload(UIKey uikey);
  17. }
  18. }