Esempio n. 1
0
 private void LateUpdate()
 {
     if (OnLateUpdateEvent != null)
     {
         OnLateUpdateEvent.Invoke();
     }
 }
Esempio n. 2
0
        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 LateUpdate()
 {
     OnLateUpdateEvent?.Invoke();
     OnLateUpdateAction?.Invoke();
 }