private void Start() { UnityDebugListener unityDebugListener = new UnityDebugListener(); UnityWarningListener unityWarningListener = new UnityWarningListener(); UnityErrorListener unityErrorListener = new UnityErrorListener(); HTLogger.Instance.Init(true); HTLogger.Instance.AddListener(HTLogger.Channel.Info, unityDebugListener); HTLogger.Instance.AddListener(HTLogger.Channel.Todo, unityDebugListener); HTLogger.Instance.AddListener(HTLogger.Channel.Debug, unityDebugListener); HTLogger.Instance.AddListener(HTLogger.Channel.Warning, unityWarningListener); HTLogger.Instance.AddListener(HTLogger.Channel.Error, unityErrorListener); HTLogger.Info("测试 Logger 成功!"); HTLogger.Todo("测试 Logger 成功!"); HTLogger.Debug("测试 Logger 成功!"); HTLogger.Warning("测试 Logger 成功!"); HTLogger.Error("测试 Logger 成功!"); }