Beispiel #1
0
 private void setupCallback(ref Action action, EventType type)
 {
     if (_eventTable.HasUnityEvent((int)type))
     {
         action += () => _eventTable.Invoke((int)type);
     }
     else
     {
         action += () => { };
     }
 }
 private void setupCallback(ref Action action, EventType type)
 {
     action += () => _eventTable.Invoke((int)type);
 }
Beispiel #3
0
 private void Awake()
 {
     _table.Invoke((int)CallbackType.Awake);
 }
 private void setupCallback <T1, T2>(ref Action <T1, T2> action, EventType type)
     where T1 : AnchorableBehaviour
     where T2 : Anchor
 {
     action += (anchObj, anchor) => _eventTable.Invoke((int)type);
 }