using UnityEngine;
using UnityEngine.UI;

public class UIScore : MonoBehaviour 
{
    public Text Total;
    public Text Rescued;
    public Text Eaten;
    public Text Abandoned;
    public Text Unaccounted;

    void Start () 
	{
        Total.text = "Total Humans: " + Score.HumansTotal;
        Rescued.text = "Rescued: " + Score.HumansRescued;

        Eaten.text = "Eaten: " + Score.HumansEaten;
        Abandoned.text = "Abandoned: " + Score.HumansAbandoned;
        Unaccounted.text = "Unaccounted for: " + Mathf.Max(0, (Score.HumansTotal - (Score.HumansRescued + Score.HumansEaten + Score.HumansAbandoned)));
    }
	
}
