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

public class TimerImage : MonoBehaviour {

    private Image timerImage;
    public float timer;


	void Start () {
        timer = 0f;
        timerImage = this.GetComponent<Image>();
	}
	
	void Update () {
       // timer = PowerBullets.instance.onPowerBulletsTime;
        if (timer > 1f) {
            timerImage.fillAmount = timer;
        }
        
	}
}
