public static bool Prefix(ref object __result, ref CharacterUIMeshSpine __instance)
 {
     if (AccessTools.Field(typeof(CharacterUIMeshSpine), "_animInfos").GetValue(__instance) == null)
     {
         __result = null;
         return(false);
     }
     return(true);
 }
Пример #2
0
            static void Postfix(CharacterUIMeshSpine __instance)
            {
                var matProp = Traverse.Create(__instance).Field <MaterialPropertyBlock>("_matProps").Value = new MaterialPropertyBlock();

                __instance.MeshRenderer.SetPropertyBlock(matProp);
            }