This commit is contained in:
CortexCore
2023-11-15 23:54:54 +08:00
parent ee3ecec6cb
commit 3c837a4a33
356 changed files with 73756 additions and 26493 deletions

View File

@@ -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

View File

@@ -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);
}
}
}
}