예제 #1
0
            public static bool Prefix(ref KeyMinigame __instance)
            {
                var localPlayer = PlayerControl.LocalPlayer;

                __instance.targetSlotId = (localPlayer != null) ? localPlayer.PlayerId % 10 : 0;
                __instance.Slots[__instance.targetSlotId].Method_62();
                return(false);
            }
예제 #2
0
            public static bool Prefix(ref KeyMinigame __instance)
            {
                var localPlayer = PlayerControl.LocalPlayer;

                __instance.targetSlotId = (localPlayer != null) ? localPlayer.PlayerId % 10 : 0;
                // Got inlined in 2021.3.5s
                // __instance.Slots[__instance.targetSlotId].Method_62(); // SetHighlight()
                __instance.Slots[__instance.targetSlotId].Image.sprite = __instance.Slots[__instance.targetSlotId].Highlit;
                return(false);
            }
예제 #3
0
 public static bool Prefix(KeyMinigame __instance)
 {
     __instance.CKEKJGDMNDB = (PlayerControl.LocalPlayer != null) ? PlayerControl.LocalPlayer.PlayerId % 10 : 0;
     __instance.Slots[__instance.CKEKJGDMNDB].Image.sprite = __instance.Slots[__instance.CKEKJGDMNDB].Highlit;
     return(false);
 }