mirror of
https://github.com/peng-zhihui/ElectronBot.git
synced 2026-10-26 01:53:05 +08:00
32 lines
501 B
C#
32 lines
501 B
C#
namespace UIWidgets.Examples
|
|
{
|
|
using UIWidgets;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// ProgressbarIndetermitate test.
|
|
/// </summary>
|
|
public class TestProgressbarIndeterminate : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// Progressbar.
|
|
/// </summary>
|
|
[SerializeField]
|
|
public ProgressbarIndeterminate Bar;
|
|
|
|
/// <summary>
|
|
/// Toggle progressbar.
|
|
/// </summary>
|
|
public void Toggle()
|
|
{
|
|
if (Bar.IsAnimationRunning)
|
|
{
|
|
Bar.Stop();
|
|
}
|
|
else
|
|
{
|
|
Bar.Animate();
|
|
}
|
|
}
|
|
}
|
|
} |