using System.Collections.Generic; #if UNITY_EDITOR using System; using System.Reflection; using System.Text.RegularExpressions; using UnityEditor; using UnityEditor.Callbacks; using UnityEditorInternal; #else using System; #endif #if FANTASY_UNITY namespace Fantasy { public class UnityLog : ILog { public void Trace(string msg) { UnityEngine.Debug.Log(msg); } public void Debug(string msg) { UnityEngine.Debug.Log(msg); } public void Info(string msg) { UnityEngine.Debug.Log(msg); } public void Warning(string msg) { UnityEngine.Debug.LogWarning(msg); } public void Error(string msg) { UnityEngine.Debug.LogError(msg); } public void Error(Exception e) { UnityEngine.Debug.LogException(e); } public void Trace(string message, params object[] args) { UnityEngine.Debug.LogFormat(message, args); } public void Warning(string message, params object[] args) { UnityEngine.Debug.LogWarningFormat(message, args); } public void Info(string message, params object[] args) { UnityEngine.Debug.LogFormat(message, args); } public void Debug(string message, params object[] args) { UnityEngine.Debug.LogFormat(message, args); } public void Error(string message, params object[] args) { UnityEngine.Debug.LogErrorFormat(message, args); } } } #endif