This commit is contained in:
CortexCore
2023-11-15 23:55:06 +08:00
parent 5446067f91
commit 70247f0242
82 changed files with 3271 additions and 579 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);
}
}
}
}