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