Beispiel #1
0
 void OnDestroy()
 {
     instance = null;
     GameEvents.onHideUI.Remove(onHideUI);
     GameEvents.onShowUI.Remove(onShowUI);
     InputLib.Close();
 }
Beispiel #2
0
 public void Awake()
 {
     instance = this;
     GameEvents.onHideUI.Add(onHideUI);
     GameEvents.onShowUI.Add(onShowUI);
 }