private void RegisterCommandCallback(string commandString, DebugConsole.DebugCommand commandCallback, string CMD_Discribes) { try { this._cmdTable[commandString] = new DebugConsole.DebugCommand(commandCallback.Invoke); this._cmdTableDiscribes.Add(commandString, CMD_Discribes); } catch (Exception ex) { Debug.Log(ex.Message); } }
public static void RegisterCommand(string commandString, DebugConsole.DebugCommand commandCallback, string CMD_Discribes) { DebugConsole.Instance.RegisterCommandCallback(commandString, commandCallback, CMD_Discribes); }