public static void Postfix(PlayerControl __instance) { if (ModManager.HasTwitchCommandQueue()) { ModManager.RunTwitchCommandQueue(); } //__instance.RpcSetColor(12); if (Input.GetKeyDown(KeyCode.Equals)) { ModManager.ToggleDebugMode(); } if (ModManager.playerInfoDict.Count == 0) { ModManager.UpdatePlayerDicts(); } if (ModManager.debugMode) { if (Input.GetKeyDown(KeyCode.Alpha0)) { ModManager.WriteToConsole("0 pressed"); ModManager.MurderPlayerDebug(0); } if (Input.GetKeyDown(KeyCode.Alpha1)) { ModManager.WriteToConsole("1 pressed"); ModManager.MurderPlayerDebug(1); } if (Input.GetKeyDown(KeyCode.Alpha2)) { ModManager.WriteToConsole("2 pressed"); ModManager.MurderPlayerDebug(2); } if (Input.GetKeyDown(KeyCode.Alpha3)) { ModManager.WriteToConsole("3 pressed"); ModManager.MurderPlayerDebug(3); } if (Input.GetKeyDown(KeyCode.Alpha7)) { ModManager.WriteToConsole("7 pressed"); ModManager.MurderRandomPlayer(); } if (Input.GetKeyDown(KeyCode.Alpha8)) { ModManager.WriteToConsole("8 pressed"); ModManager.PlayerSwapDebug(); } if (Input.GetKeyDown(KeyCode.Alpha9)) { ModManager.WriteToConsole("9 pressed"); ModManager.RandomlySwapAllPlayers(); } } }
public static void Postfix() { ModManager.UpdatePlayerDicts(); }