diff --git a/Assets/Scripts/Cheat/DebugController.cs b/Assets/Scripts/Cheat/DebugController.cs index 3ea0a7d1394d3d863c1b0be1c1ae37e8594b70fe..56ec93e06d7616c30b670171e1dd6a827f747dbf 100644 --- a/Assets/Scripts/Cheat/DebugController.cs +++ b/Assets/Scripts/Cheat/DebugController.cs @@ -1,115 +1,115 @@ -using System.Collections.Generic; -using Unity.VisualScripting; -using UnityEngine; -using UnityEngine.InputSystem; +//using System.Collections.Generic; +//using Unity.VisualScripting; +//using UnityEngine; +//using UnityEngine.InputSystem; -public class DebugController : MonoBehaviour -{ - bool showConsole; +//public class DebugController : MonoBehaviour +//{ +// bool showConsole; - public static DebugCommand NO_DAMAGE; - public static DebugCommand ONE_HIT_KILL; - public static DebugCommand MOTHERLODE; - public static DebugCommand DOUBLE_SPEED; - public static DebugCommand PET_FULL_HP; - public static DebugCommand KILL_PET; - public static DebugCommand ORB; - public static DebugCommand SKIP_LEVEL; +// public static DebugCommand NO_DAMAGE; +// public static DebugCommand ONE_HIT_KILL; +// public static DebugCommand MOTHERLODE; +// public static DebugCommand DOUBLE_SPEED; +// public static DebugCommand PET_FULL_HP; +// public static DebugCommand KILL_PET; +// public static DebugCommand ORB; +// public static DebugCommand SKIP_LEVEL; - public List<object> commandList; +// public List<object> commandList; - public void OnToggleDebug(InputValue value) - { - showConsole = !showConsole; - } +// public void OnToggleDebug(InputValue value) +// { +// showConsole = !showConsole; +// } - public void OnReturn(InputValue value) - { - if (showConsole) - { - HandleInput(); - input = ""; - } - } +// public void OnReturn(InputValue value) +// { +// if (showConsole) +// { +// HandleInput(); +// input = ""; +// } +// } - private void Awake() - { - NO_DAMAGE = new DebugCommand("no_damage", "Player Has No Damage.", "no_damage", () => - { +// private void Awake() +// { +// NO_DAMAGE = new DebugCommand("no_damage", "Player Has No Damage.", "no_damage", () => +// { - }); +// }); - ONE_HIT_KILL = new DebugCommand("one_hit_kill", "Player Can Kill Enemy with One Hit.", "one_hit_kill", () => - { +// ONE_HIT_KILL = new DebugCommand("one_hit_kill", "Player Can Kill Enemy with One Hit.", "one_hit_kill", () => +// { - }); +// }); - MOTHERLODE = new DebugCommand("motherlode", "Gain Resources.", "motherlode", () => - { +// MOTHERLODE = new DebugCommand("motherlode", "Gain Resources.", "motherlode", () => +// { - }); +// }); - DOUBLE_SPEED = new DebugCommand("double_speed", "Double Player Speed.", "double_speed", () => - { +// DOUBLE_SPEED = new DebugCommand("double_speed", "Double Player Speed.", "double_speed", () => +// { - }); +// }); - PET_FULL_HP = new DebugCommand("pet_full_hp", "Restore Pet's Health to Full.", "pet_full_hp", () => - { +// PET_FULL_HP = new DebugCommand("pet_full_hp", "Restore Pet's Health to Full.", "pet_full_hp", () => +// { - }); +// }); - KILL_PET = new DebugCommand("kill_pet", "Kill Pet.", "kill_pet", () => - { +// KILL_PET = new DebugCommand("kill_pet", "Kill Pet.", "kill_pet", () => +// { - }); +// }); - ORB = new DebugCommand("orb", "Spawn Orb.", "orb", () => - { +// ORB = new DebugCommand("orb", "Spawn Orb.", "orb", () => +// { - }); +// }); - SKIP_LEVEL = new DebugCommand("skip_level", "Skip Current Level.", "skip_level", () => - { +// SKIP_LEVEL = new DebugCommand("skip_level", "Skip Current Level.", "skip_level", () => +// { - }); +// }); - commandList = new List<object> - { - NO_DAMAGE, - ONE_HIT_KILL, - MOTHERLODE, - DOUBLE_SPEED, - PET_FULL_HP, - KILL_PET, - ORB, - SKIP_LEVEL - }; - } +// commandList = new List<object> +// { +// NO_DAMAGE, +// ONE_HIT_KILL, +// MOTHERLODE, +// DOUBLE_SPEED, +// PET_FULL_HP, +// KILL_PET, +// ORB, +// SKIP_LEVEL +// }; +// } - private void OnGUI() - { - if (!showConsole) { return; } +// private void OnGUI() +// { +// if (!showConsole) { return; } - float y = 0f; +// float y = 0f; - GUI.Box(new Rect(0, y, Screen.width, 30), ""); - GUI.backgroundColor = new Color(0, 0, 0, 0); - input = GUI.TextField(new Rect(10f, y + 5f, Screen.width - 20f, 20f), input); - } +// GUI.Box(new Rect(0, y, Screen.width, 30), ""); +// GUI.backgroundColor = new Color(0, 0, 0, 0); +// input = GUI.TextField(new Rect(10f, y + 5f, Screen.width - 20f, 20f), input); +// } - private void HandleInput() - { - for (int i = 0; i < commandList.Count; i++) - { - DebugCommandBase commandBase = commandList[i] as DebugCommandBase; +// private void HandleInput() +// { +// for (int i = 0; i < commandList.Count; i++) +// { +// DebugCommandBase commandBase = commandList[i] as DebugCommandBase; - if (input.Contains(commandBase.commandId)) - { - (commandList[i] as DebugCommand).Invoke(); - } - } - } -} \ No newline at end of file +// if (input.Contains(commandBase.commandId)) +// { +// (commandList[i] as DebugCommand).Invoke(); +// } +// } +// } +//} \ No newline at end of file