CultPong/Assets/Scripts/LiteNetLib/NetDebug.cs
2020-09-25 07:12:38 +01:00

21 lines
522 B
C#

using System;
namespace LiteNetLib
{
/// <summary>
/// Interface to implement for your own logger
/// </summary>
public interface INetLogger
{
void WriteNet(ConsoleColor color, string str, params object[] args);
}
/// <summary>
/// Static class for defining your own LiteNetLib logger instead of Console.WriteLine
/// or Debug.Log if compiled with UNITY flag
/// </summary>
public static class NetDebug
{
public static INetLogger Logger = null;
}
}