Пример #1
0
        public static void Postfix2(HudManager __instance)
        {
            if (Metamorph.LocalMetamorph != null)
            {
                Metamorph.LocalMetamorph.Update();
            }

            if (MorphButton != null)
            {
                MorphButton.Update();
            }
        }
Пример #2
0
 public static void Postfix2(HudManager __instance)
 {
     if (PlayerControlPatch.Metamorphs != null)
     {
         foreach (Metamorph metamorph in PlayerControlPatch.Metamorphs)
         {
             metamorph.Update();
             if (metamorph.PlayerId == PlayerControl.LocalPlayer.PlayerId)
             {
                 MorphButton.Update();
             }
         }
     }
 }