public void Invoke(gen010 val)
 {
     if (debug)
     {
         Debug.Log($"{name} event invoked: {val}");
     }
     ahoyEvent.Invoke(name, val);
     //important to do this incase a listener removes its self from the list
     unityEventListeners.ToArray().ForEach(l => l.Invoke(name, val));
     assetEventListeners.ToArray().ForEach(l => l.Invoke(val));
 }
 public void Push(gen010 val)
 {
     array.Push(val);
     Invoke();
 }
Exemplo n.º 3
0
 public void Log(gen010 val)
 {
     Debug.Log($"{prefix}: {val}");
 }