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

public class TrasmitterBar : MonoBehaviour {

    // Use this for initialization
    public Image transmitting;
    public float fillConversion;
    public float fillerEnd;

    // Use this for initialization
    void Start()
    {


    }

    // Update is called once per frame
    void Update()
    {
        if (GameManager.instance.beaconamount != 0)
        {
            fillConversion = GameManager.instance.beaconamount;
            fillerEnd = fillConversion / 100;
            transmitting.fillAmount = fillerEnd;
        }
    }
}
