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); }
public static void CallOnFixedUpdate(IOnFixedUpdate obj, Action action) { obj.AddFixedUpdateListener(action); }