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();
                }
            }
        }
Ejemplo n.º 2
0
 public static void Postfix()
 {
     ModManager.gameStarted = true;
     ModManager.WriteToConsole("Game has begun");
 }
Ejemplo n.º 3
0
 public static void Prefix()
 {
     ModManager.gameStarted = false;
     ModManager.WriteToConsole("Game has ended");
 }