Exemple #1
0
 public static void AwakePostfix(MPCharCtrl __instance)
 {
     ((Button)__instance.GetField("ikInfo").GetField("buttonReflectFK")).onClick.RemoveAllListeners();
     ((Button)__instance.GetField("ikInfo").GetField("buttonReflectFK")).onClick.AddListener(delegate() {
         //__instance.CopyBoneFK((OIBoneInfo.BoneGroup)353);
         __instance.Invoke("CopyBoneFK", new object[] { OIBoneInfo.BoneGroup.Body });
     });
     ((Button[])__instance.GetField("fkInfo").GetField("buttonAnimeSingle"))[1].onClick.RemoveAllListeners();
     ((Button[])__instance.GetField("fkInfo").GetField("buttonAnimeSingle"))[1].onClick.AddListener(delegate() {
         __instance.Invoke("CopyBoneFK", new object[] { OIBoneInfo.BoneGroup.Neck });
     });
     KK_StudioReflectFKFix.Logger.LogDebug("FK Fix Finish");
     InitBtn(__instance);
 }