using UnityEngine; using UnityEngine.UI; using UIWidgets; namespace UIWidgetsSamples { [RequireComponent(typeof(Button))] public class SampleProgressBar2 : MonoBehaviour { public Progressbar bar; Button button; // Use this for initialization void Start() { button = GetComponent