using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace UnityEngine.UI
{
    public class ProgressBar : MonoBehaviour
    {
        public Image bar;
        
        public Color barColor
        {
            set { bar.color = value; }
            get { return bar.color; }
        }

        public float barValue
        {
            set { bar.transform.localScale = new Vector3(Mathf.Clamp(value, 0f, 1f), 1f, 1f); }
            get { return bar.transform.localScale.x; }
        }
    }
}