Esempio n. 1
0
 protected void Awake()
 {
     if (listener != null)
     {
         Destroy(gameObject);
     }
     listener = this;
     GlobalEventListener.SetListener(this);
 }
Esempio n. 2
0
 protected void OnDestroy()
 {
     listener = null;
 }
Esempio n. 3
0
 public static void SetListener(GlobalEventListenerBehaviour listener)
 {
     GlobalEventListener.listener = listener;
 }