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

public class BatteryFillScript : MonoBehaviour {

	public float percentFull = 100f; //max 100 min 0

	// Use this for initialization
	void Start () {
		this.GetComponent<Image> ().fillMethod = Image.FillMethod.Vertical;
		this.GetComponent<Image> ().type = Image.Type.Filled;
	}
	
	// Update is called once per frame
	void Update () {
		this.GetComponent<Image> ().fillAmount = percentFull / 100;
	}
}
