Exemplo n.º 1
0
 private void OnValidate()
 {
     if (_cacheEvent != null && Application.isPlaying)
     {
         _cacheEvent.Unregister(_onInvoke.Invoke);
     }
     _cacheEvent = _targetEvent;
 }
Exemplo n.º 2
0
 public void OnDisable()
 {
     eventObject.Unregister(Log);
 }
Exemplo n.º 3
0
 public void OnDisable()
 {
     _targetEvent.Unregister(_onInvoke.Invoke);
 }