static int Eval(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); string arg0 = LuaScriptMgr.GetLuaString(L, 1); string o = GConsole.Eval(arg0); LuaScriptMgr.Push(L, o); return(1); }
public void OnInput() { string cmd = input.text; if (string.IsNullOrEmpty(cmd)) { return; } GConsole.Eval(cmd); //Send command to the console input.text = string.Empty; // input.Select(); StartCoroutine(delay()); }
public void OnInput() { string cmd = input.text; if (string.IsNullOrEmpty(cmd)) { return; } GConsole.Eval(cmd); //Send command to the console if (clearOnSubmit) { input.text = string.Empty; } if (reselectOnSubmit) { input.Select(); input.ActivateInputField(); } }