public static void Postfix2(HudManager __instance) { if (Metamorph.LocalMetamorph != null) { Metamorph.LocalMetamorph.Update(); } if (MorphButton != null) { MorphButton.Update(); } }
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(); } } } }