fix
This commit is contained in:
parent
c202e21af0
commit
03c0fe6723
@ -217,8 +217,9 @@ namespace AlicizaX.UI.Runtime
|
|||||||
{
|
{
|
||||||
_state = UIState.Opened;
|
_state = UIState.Opened;
|
||||||
Visible = true;
|
Visible = true;
|
||||||
Holder.OnWindowShowEvent?.Invoke();
|
Holder.OnWindowBeforeShowEvent?.Invoke();
|
||||||
await OnOpenAsync();
|
await OnOpenAsync();
|
||||||
|
Holder.OnWindowAfterShowEvent?.Invoke();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -226,10 +227,11 @@ namespace AlicizaX.UI.Runtime
|
|||||||
{
|
{
|
||||||
if (_state == UIState.Opened)
|
if (_state == UIState.Opened)
|
||||||
{
|
{
|
||||||
Holder.OnWindowClosedEvent?.Invoke();
|
Holder.OnWindowBeforeClosedEvent?.Invoke();
|
||||||
await OnCloseAsync();
|
await OnCloseAsync();
|
||||||
_state = UIState.Closed;
|
_state = UIState.Closed;
|
||||||
Visible = false;
|
Visible = false;
|
||||||
|
Holder.OnWindowAfterClosedEvent?.Invoke();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -8,8 +8,10 @@ namespace AlicizaX.UI.Runtime
|
|||||||
public abstract class UIHolderObjectBase : UnityEngine.MonoBehaviour
|
public abstract class UIHolderObjectBase : UnityEngine.MonoBehaviour
|
||||||
{
|
{
|
||||||
public Action OnWindowInitEvent;
|
public Action OnWindowInitEvent;
|
||||||
public Action OnWindowShowEvent;
|
public Action OnWindowBeforeShowEvent;
|
||||||
public Action OnWindowClosedEvent;
|
public Action OnWindowAfterShowEvent;
|
||||||
|
public Action OnWindowBeforeClosedEvent;
|
||||||
|
public Action OnWindowAfterClosedEvent;
|
||||||
public Action OnWindowDestroyEvent;
|
public Action OnWindowDestroyEvent;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user