- Best answers
Try it withSeems like its working but not actually working. I mean It's not crashing but I'm guessing that I'm not setting it properly since I'm not seeing any change at all.
Here is the code ( don't mind the ugly castings, its for test purpose )
Everything also looks fine on debugger as well, I'm not sure whats the issue.C#:
Type type = typeof(SandBoxViewCreator); FieldInfo info = type.GetField("_viewCreators", BindingFlags.NonPublic | BindingFlags.Static); object value = info.GetValue(null); ((Dictionary<string, MethodInfo>)value).Remove("Village"); MethodInfo mInf = typeof(MissionOverride).GetMethod("OpenVillageMissionOverride"); ((Dictionary<string, MethodInfo>)value).Add("Village", mInf); info.SetValue(null, value);
ViewCreatorManager._viewCreatorsinstead. It seems that the ViewCreatorManager is the only one that adds the behaviors. If this doesn't work, try it with both.