IUI.cs 586 B

123456789101112131415161718192021
  1. using UnityEngine;
  2. namespace Rokid.UXR.UI
  3. {
  4. public interface IUI
  5. {
  6. Transform GetUIParent();
  7. string GetPanelPath();
  8. string GetItemPath();
  9. T CreatePanel<T>(bool dialog, string prefabName, bool findExitUI) where T : BasePanel;
  10. T CreatePanel<T>(Transform parent, bool dialog, string prefabName, bool findExitUI) where T : BasePanel;
  11. T CreateItem<T>(Transform parent, bool active) where T : BaseItem;
  12. void ExitPanel<T>() where T : BasePanel;
  13. void ExitDialog<T>() where T : IDialog;
  14. void ExitAll();
  15. }
  16. }