Helper class to deal with detours. This version is for Unity 5 x64 on Windows. We provide three different methods of detouring.
예제 #1
0
 public MethodRedirection(MethodInfo originalMethod, MethodInfo newMethod, Assembly redirectionSource)
 {
     _originalMethod   = originalMethod;
     _callsState       = RedirectionHelper.RedirectCalls(_originalMethod, newMethod);
     RedirectionSource = redirectionSource;
 }