예제 #1
0
 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());
         }
     }
 }
예제 #2
0
 private static void Prefix()
 {
     if (DevTool.IsIns())
     {
         DevTool.InputCMD(global::Console.instance.m_input.text);
     }
 }
예제 #3
0
 public static void TestC()
 {
     DevTool.ViewReward();
 }
예제 #4
0
 private void Awake()
 {
     instance       = this;
     Plugin.posZone = (Action)Delegate.Combine(Plugin.posZone, (Action)Reg);
 }