1
This commit is contained in:
@@ -8,19 +8,15 @@ namespace BITKit;
|
||||
|
||||
public class BITAppForNet
|
||||
{
|
||||
[Obsolete("Use InitializeAsync instead")]
|
||||
public static UniTask Init(string name)=>UniTask.CompletedTask;
|
||||
private static readonly Timer _timer = new();
|
||||
|
||||
private static Timer _timer = new();
|
||||
|
||||
private static DateTime _startTime = DateTime.UtcNow;
|
||||
private static readonly DateTime _startTime = DateTime.UtcNow;
|
||||
|
||||
public static async UniTask InitializeAsync(string name)
|
||||
{
|
||||
BIT4Log.OnLog += Console.WriteLine;
|
||||
BIT4Log.OnWarning += Console.WriteLine;
|
||||
BIT4Log.OnException += e => Console.WriteLine(e.ToString());
|
||||
BIT4Log.OnSetConsoleColor += color => Console.ForegroundColor = color;
|
||||
BIT4Log.OnNextLine += Console.WriteLine;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user