void Start() { Debug.Log("Sample Log"); Debug.LogWarning("Sample LogWarning"); Debug.LogError("Sample LogError"); // 添加对象方法命令 DebugConsole.AddCommand("command", "object command", "SampleCommand", typeof(Sample), this); // 添加静态方法命令 DebugConsole.AddStaticCommand("staticCommand", "static command", "SampleStaticCommand", typeof(Sample)); }