Пример #1
0
 public StateInterfaceHandler(IState state)
 {
     CurrentState           = state;
     OnSleepInterface       = GetInterface <IOnSleep>(state);
     OnAwakeInterface       = GetInterface <IOnAwake>(state);
     OnUpdateInterface      = GetInterface <IOnUpdate>(state);
     OnLateUpdateInterface  = GetInterface <IOnLateUpdate>(state);
     OnFixedUpdateInterface = GetInterface <IOnFixedUpdate>(state);
 }
Пример #2
0
 public static void CallOnFixedUpdate(IOnFixedUpdate obj, Action action)
 {
     obj.AddFixedUpdateListener(action);
 }