void configureAndCacheState(TEnum stateEnum) { var stateName = stateEnum.ToString(); var state = new StateMethodCache(); state.enterState = getDelegateForMethod(stateName + "_Enter"); state.tick = getDelegateForMethod(stateName + "_Tick"); state.exitState = getDelegateForMethod(stateName + "_Exit"); _stateCache[stateEnum] = state; }