void Start() { Console.AddListener(OnSubmit); commands = new Command[] { new Command { text = "/loc", action = OnLoc }, new Command { text = "/goto", action = OnGoTo }, new Command { text = "/quit", action = OnQuit } }; player = GameObject.FindGameObjectWithTag("Player"); }