add kcp
This commit is contained in:
@@ -54,15 +54,23 @@ namespace BITKit.UX
|
||||
|
||||
}
|
||||
}
|
||||
public async void SetDirect(float progess,string label)
|
||||
|
||||
public async void SetDirect(float progess, string label)
|
||||
{
|
||||
await UniTask.SwitchToMainThread(cancellationToken);
|
||||
Set(progess);
|
||||
if (labelElement is not null)
|
||||
try
|
||||
{
|
||||
await UniTask.SwitchToMainThread(cancellationToken);
|
||||
Set(progess);
|
||||
if (labelElement is not null)
|
||||
{
|
||||
labelElement.text = label;
|
||||
}
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
labelElement.text = label;
|
||||
}
|
||||
}
|
||||
|
||||
float IProvider<float>.Get()
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
|
Reference in New Issue
Block a user