2021-12-02 18:35:46 +11:00
|
|
|
|
#if MONO
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.Events;
|
|
|
|
|
using UnityEngine.EventSystems;
|
|
|
|
|
using UnityEngine.SceneManagement;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
using UnityExplorer;
|
|
|
|
|
|
2022-01-17 19:42:05 +11:00
|
|
|
|
namespace UnityExplorer.Runtime
|
2021-12-02 18:35:46 +11:00
|
|
|
|
{
|
|
|
|
|
public class MonoProvider : RuntimeHelper
|
|
|
|
|
{
|
|
|
|
|
public override void SetupEvents()
|
|
|
|
|
{
|
|
|
|
|
Application.logMessageReceived += Application_logMessageReceived;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Application_logMessageReceived(string condition, string stackTrace, LogType type)
|
|
|
|
|
=> ExplorerCore.LogUnity(condition, type);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|