Beispiel #1
0
 private void OnDestroy()
 {
     if (OnDestroyEvent != null)
     {
         OnDestroyEvent.Invoke(this);
     }
 }
        public bool RunEvent(EventState eventState)
        {
            switch (eventState)
            {
            case EventState.None:
                return(true);

            case EventState.Input:
                return(true);

            case EventState.Start:
                return(true);

            case EventState.Update:
                onUpdateEvent.Invoke();
                return(true);

            case EventState.LateUpdate:
                onLateUpdateEvent.Invoke();
                return(true);

            case EventState.Destroy:
                onDestroyEvent.Invoke();
                return(true);

            default:
                return(false);
            }
        }
 private void OnDestroy()
 {
     if (onDestroy.IsNullOrEmpty())
     {
         throw Log.e("OnDestroyListener had no listeners");
     }
     onDestroy.Invoke();
 }
 /// <summary>
 /// Cleans up any resources the object has open.
 /// </summary>
 protected override void OnDestroy()
 {
     if (this.endOfFrameCoroutine != null)
     {
         this.StopCoroutine(this.endOfFrameCoroutine);
     }
     OnDestroyEvent?.Invoke();
 }
Beispiel #5
0
 public virtual void Deactivate()
 {
     _active = false;
     _animator.SetTrigger("Deactivate");
     GameManager.Instance.OnGameOver -= OnGameOver;
     GameManager.Instance.OnPause    -= ToggleActive;
     OnDestroyEvent?.Invoke(this);
 }
        private void OnDestroy()
        {
            OnDestroyEvent.Invoke();

            OnStartEvent      = null;
            OnUpdateEvent     = null;
            OnDestroyEvent    = null;
            onLateUpdateEvent = null;
        }
Beispiel #7
0
 public void Destroy()
 {
     if (!IsDestroyed)
     {
         IsDestroyed = true;
         OnDestroyEvent?.Invoke(this);
         NetworkBehavior.IdentityDestroy(this);
     }
 }
Beispiel #8
0
 public void DestroyWidget()
 {
     OnDestroyEvent?.Invoke(this);
 }
Beispiel #9
0
 void OnDestroy()
 {
     OnDestroyed.Invoke(transform);
 }
Beispiel #10
0
 public virtual void OnSetDestroy()
 {
     EngManager.controls.hitboxesMouseOver.Remove(this);
     EngManager.controls.FindTopHitbox();
     OnDestroyEvent?.Invoke(this, null);
 }
Beispiel #11
0
 protected virtual void OnDestroy()
 {
     onDestroy.Invoke(gameObject);
 }
Beispiel #12
0
 public void OnDestroy()
 {
     onDestroy.Invoke(gameObject);
 }
 private void OnDestroy()
 {
     OnDestroyEvent?.Invoke();
     OnDestroyAction?.Invoke();
 }
Beispiel #14
0
 void OnDestroy()
 {
     onTrigger.Invoke(gameObject);
 }
 void OnDestroy()
 {
     OnDestroyEvent?.Invoke(this);
 }
 public Task Destroy(ConfirmRef confirmRef)
 {
     return(OnDestroyEvent?.Invoke(confirmRef));
 }
Beispiel #17
0
 void OnDestroy()
 {
     OnDestroyEvent?.Invoke();
 }
Beispiel #18
0
 public Task Destroy(ModalRef modalRef)
 {
     return(OnDestroyEvent?.Invoke(modalRef));
 }
 protected virtual void OnDisable()
 {
     OnDestroyEvent?.Invoke();
 }
Beispiel #20
0
 public void OnDestroy()
 {
     onDestroyUnityEvent?.Invoke();
     OnDestroyEvent?.Invoke();
 }