breakpoint
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user