1
This commit is contained in:
22
Unity/Scripts/Debuger/ShowException.cs
Normal file
22
Unity/Scripts/Debuger/ShowException.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Cysharp.Threading.Tasks;
|
||||
namespace BITKit
|
||||
{
|
||||
public class ShowException : Provider<Exception>
|
||||
{
|
||||
public Provider stringOutput;
|
||||
public string message;
|
||||
public override Exception Get()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
public override async void Set(Exception t)
|
||||
{
|
||||
await UniTask.SwitchToMainThread();
|
||||
stringOutput.Set(message = t.Message);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user