aha
This commit is contained in:
14
Assets/Mirror/Transports/KCP/kcp2k/highlevel/Log.cs
Normal file
14
Assets/Mirror/Transports/KCP/kcp2k/highlevel/Log.cs
Normal file
@ -0,0 +1,14 @@
|
||||
// A simple logger class that uses Console.WriteLine by default.
|
||||
// Can also do Logger.LogMethod = Debug.Log for Unity etc.
|
||||
// (this way we don't have to depend on UnityEngine)
|
||||
using System;
|
||||
|
||||
namespace kcp2k
|
||||
{
|
||||
public static class Log
|
||||
{
|
||||
public static Action<string> Info = Console.WriteLine;
|
||||
public static Action<string> Warning = Console.WriteLine;
|
||||
public static Action<string> Error = Console.Error.WriteLine;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user