public static void InputCMD(string CMD) { if (CMD.Length > 0) { if (CMD.StartsWith(" ")) { CMD = CMD.Remove(0, 1); } if (CMD == "testa") { DevTool.TestA(); } if (CMD == "testb") { DevTool.TestB(); } if (CMD == "testc") { DevTool.TestC(); } if (CMD.StartsWith("/3dtele")) { CMD = CMD.Remove(0, 8); var pos = CMD.Split(new char[] { ',' }); Player.m_localPlayer.transform.position = new Vector3(float.Parse(pos[0]), float.Parse(pos[1]), float.Parse(pos[2])); } if (CMD.StartsWith("/ctask")) { CMD = CMD.Remove(0, 6); QuestManager.instance.CreateQuest((QuestType)int.Parse(CMD), Game.instance.GetPlayerProfile().GetCustomSpawnPoint()); } } }
private static void Prefix() { if (DevTool.IsIns()) { DevTool.InputCMD(global::Console.instance.m_input.text); } }
public static void TestC() { DevTool.ViewReward(); }
private void Awake() { instance = this; Plugin.posZone = (Action)Delegate.Combine(Plugin.posZone, (Action)Reg); }