修改destroy回调警告
This commit is contained in:
parent
a91d404944
commit
797ab0c843
@ -92,7 +92,7 @@ namespace AxibugEmuOnline.Client
|
|||||||
else
|
else
|
||||||
CommandDispatcher.Instance.UnRegistController(this);
|
CommandDispatcher.Instance.UnRegistController(this);
|
||||||
|
|
||||||
if(!value)
|
if (!value)
|
||||||
ResetPulsInvoker();
|
ResetPulsInvoker();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -100,7 +100,7 @@ namespace AxibugEmuOnline.Client
|
|||||||
public abstract void Init(List<T> menuDataList);
|
public abstract void Init(List<T> menuDataList);
|
||||||
|
|
||||||
|
|
||||||
private void OnDestroy()
|
protected override void OnDestroy()
|
||||||
{
|
{
|
||||||
if (CommandDispatcher.Instance != null)
|
if (CommandDispatcher.Instance != null)
|
||||||
CommandDispatcher.Instance.UnRegistController(this);
|
CommandDispatcher.Instance.UnRegistController(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user