1
This commit is contained in:
@@ -26,13 +26,11 @@ namespace BITKit.Pool
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
var hashset = new HashSet<GameObject>();
|
||||
foreach (var (_,list) in Pool)
|
||||
{
|
||||
foreach (var obj in list)
|
||||
{
|
||||
if (obj is not Component component) continue;
|
||||
if (!hashset.Add(component.gameObject)) continue;
|
||||
if (component)
|
||||
Object.Destroy(component.gameObject);
|
||||
}
|
||||
|
@@ -37,6 +37,7 @@ namespace BITKit
|
||||
_ActionQueue.Clear();
|
||||
//_TickActions.Clear();
|
||||
TickCount = ulong.MinValue;
|
||||
_TickEvents = null;
|
||||
}
|
||||
private static readonly Queue<Action> _ActionQueue = new();
|
||||
// private static readonly CacheList<Action<float>> _TickActions = new();
|
||||
|
@@ -12,6 +12,7 @@ namespace BITKit.UX
|
||||
{
|
||||
private static UXRadialMenu _singleton;
|
||||
protected override string DocumentPath => "ui_radial_menu";
|
||||
public override bool IsWindow => true;
|
||||
public override bool CloseWhenClickOutside => true;
|
||||
public override bool AllowCursor => true;
|
||||
private VisualTreeAsset _template;
|
||||
|
Reference in New Issue
Block a user