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

public class PatientenBar : MonoBehaviour
{
    // Use this for initialization
    public Image blut;
    public float fillConversion;
    public float fillerEnd;

    // Use this for initialization
    void Start()
    {
        GameManager.instance.patientenkonvertiert = 0;
        

    }

    // Update is called once per frame
    void Update()
    {
        if (GameManager.instance.maxpatienten != 0)
        {
            fillConversion = GameManager.instance.patientenkonvertiert;
            fillerEnd = fillConversion / GameManager.instance.maxpatienten ;
            blut.fillAmount = fillerEnd;
        }
    }
}
