8 [CreateAssetMenu(fileName =
"Screen", menuName =
"HKI/UI/Screen", order = 0)]
12 [SerializeField] GameObject ScreenPrefab = null;
13 [SerializeField]
bool DestroyWhenClosed =
true;
14 [SerializeField]
bool DisableScreensUnderneath =
true;
19 public int GetScreenId {
get {
return screenId; } }
21 public GameObject GetScreenPrefab {
get {
return ScreenPrefab; } }
22 public bool GetDestroyWhenClosed {
get {
return DestroyWhenClosed; } }
23 public bool GetDisableScreensUnderneath {
get {
return DisableScreensUnderneath; } }
28 screenId = GetInstanceID();
36 Debug.LogError(
"(UIScreen)" + name +
" you are trying to open the screen but there is no screen manager in this scene(s)!");
47 Debug.LogError(
"(UIScreen)" + name +
" you are trying to close the screen but there is no screen manager in this scene(s)!");
void OpenScreen(UIScreen screen)
The UIScreenManager is a simple window manager.
void CloseScreen(UIScreen screen)
This ScriptableObject holds all the information that is required by the UIScreenManager to display a ...
static UIScreenManager Instance