mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 12:33:02 +00:00
add Unity callbacks to PauseMenuWindow
This commit is contained in:
parent
5a947badfa
commit
a36fd8c6ca
4 changed files with 22 additions and 8 deletions
|
@ -20,11 +20,6 @@ namespace SanAndreasUnity.UI {
|
|||
|
||||
}
|
||||
|
||||
void Awake ()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Start ()
|
||||
{
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -45,8 +45,10 @@ namespace SanAndreasUnity.UI {
|
|||
|
||||
}
|
||||
|
||||
void Awake () {
|
||||
protected override void Awake () {
|
||||
|
||||
base.Awake();
|
||||
|
||||
if (null == Instance)
|
||||
Instance = this;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue