add Unity callbacks to PauseMenuWindow

This commit is contained in:
in0finite 2019-08-30 17:50:59 +02:00
parent 5a947badfa
commit a36fd8c6ca
4 changed files with 22 additions and 8 deletions

View file

@ -20,11 +20,6 @@ namespace SanAndreasUnity.UI {
}
void Awake ()
{
}
void Start ()
{

View file

@ -72,13 +72,15 @@ namespace SanAndreasUnity.UI
#region MonoBehaviour Messages
void OnDisable()
protected override void OnDisable()
{
Application.logMessageReceivedThreaded -= HandleLogThreaded;
base.OnDisable();
}
void OnEnable()
protected override void OnEnable()
{
base.OnEnable();
Application.logMessageReceivedThreaded += HandleLogThreaded;
}

View file

@ -45,8 +45,10 @@ namespace SanAndreasUnity.UI {
}
void Awake () {
protected override void Awake () {
base.Awake();
if (null == Instance)
Instance = this;

View file

@ -108,6 +108,21 @@ namespace SanAndreasUnity.UI {
Destroy(this);
}
protected virtual void Awake()
{
}
protected virtual void OnEnable()
{
}
protected virtual void OnDisable()
{
}
void WindowStart() {
if (m_registerInMainMenuOnStart)