1
This commit is contained in:
@@ -6,6 +6,8 @@ using Cysharp.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
// ReSharper disable MemberCanBeProtected.Global
|
||||
// ReSharper disable ClassWithVirtualMembersNeverInherited.Global
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
namespace BITKit.UX
|
||||
{
|
||||
@@ -48,6 +50,7 @@ namespace BITKit.UX
|
||||
{
|
||||
OnEntryOrExit(true);
|
||||
document.rootVisualElement.SetActive(true);
|
||||
OnEntry?.Invoke();
|
||||
}
|
||||
void IUXPanel.Exit()
|
||||
{
|
||||
@@ -62,8 +65,11 @@ namespace BITKit.UX
|
||||
BIT4Log.Warning<UIToolKitPanel>(name);
|
||||
BIT4Log.LogException(e);
|
||||
}
|
||||
|
||||
OnExit?.Invoke();
|
||||
}
|
||||
public event Action OnEntry;
|
||||
public event Action OnExit;
|
||||
|
||||
protected virtual void OnEntryOrExit(bool isEntry)
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user