1
This commit is contained in:
@@ -2,7 +2,6 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
using UnityEngine.AddressableAssets;
|
||||
namespace BITKit.UX
|
||||
{
|
||||
public class UXConstant
|
||||
|
@@ -13,8 +13,9 @@ namespace BITKit.UX
|
||||
[Obsolete("Use UXService instead")]
|
||||
public class UXFramework : MonoBehaviour
|
||||
{
|
||||
public static Dictionary<string, UXPanel> panels = new();
|
||||
public static Stack<UXPanel> stacks = new();
|
||||
|
||||
public static readonly Dictionary<string, UXPanel> panels = new();
|
||||
public static readonly Stack<UXPanel> stacks = new();
|
||||
private static UXFramework singleton;
|
||||
private static UXPanel current;
|
||||
|
||||
@@ -95,7 +96,7 @@ namespace BITKit.UX
|
||||
}
|
||||
}
|
||||
|
||||
void OnDestroy()
|
||||
private void OnDestroy()
|
||||
{
|
||||
if (singleton == this)
|
||||
{
|
||||
@@ -107,7 +108,7 @@ namespace BITKit.UX
|
||||
}
|
||||
}
|
||||
|
||||
void Start()
|
||||
private void Start()
|
||||
{
|
||||
GetComponentsInChildren<UXPanel>(true).ForEach(x =>
|
||||
{
|
||||
@@ -127,5 +128,7 @@ namespace BITKit.UX
|
||||
Enter(startPanel);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user