breakpoint

This commit is contained in:
CortexCore
2023-06-17 16:30:53 +08:00
parent cd02761be7
commit 877ba6e548
88 changed files with 8715 additions and 988 deletions

View File

@@ -34,7 +34,7 @@ namespace BITKit.UX
{
try
{
await UniTask.SwitchToMainThread(gameObject.GetCancellationTokenOnDestroy());
await UniTask.SwitchToMainThread(cancellationToken);
switch (visualElement)
{
case INotifyValueChanged<float> iNotify:
@@ -45,20 +45,23 @@ namespace BITKit.UX
fillElement.style.width = new StyleLength(Length.Percent(value));
break;
}
if (labelElement is not null)
labelElement.text = value.ToString();
}
catch (System.Exception e)
catch (OperationCanceledException)
{
if (e is not OperationCanceledException)
throw;
}
}
public async void SetDirect(float progess,string label)
{
await UniTask.SwitchToMainThread(gameObject.GetCancellationTokenOnDestroy());
await UniTask.SwitchToMainThread(cancellationToken);
Set(progess);
labelElement.text = label;
if (labelElement is not null)
{
labelElement.text = label;
}
}
float IProvider<float>.Get()
{