mirror of
https://github.com/ConjureETS/Human-Farm-Tycoon.git
synced 2026-03-24 02:11:07 +00:00
41 lines
781 B
C#
41 lines
781 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using UnityEngine.UI;
|
|
|
|
public class ConfirmStatsScript : MonoBehaviour {
|
|
|
|
public Text currentValues;
|
|
public Text addedValues;
|
|
public Text alertTitle;
|
|
public Text descrEvent;
|
|
private Stats stats;
|
|
|
|
|
|
void Awake()
|
|
{
|
|
stats = GameObject.Find("Stats").gameObject.GetComponent<Stats>();
|
|
}
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
|
|
public void UpdateView()
|
|
{
|
|
currentValues.text = stats.displayCurrentStats();
|
|
addedValues.text = stats.displayAddingStats();
|
|
alertTitle.text = "DAY " + stats.NbTurns;
|
|
}
|
|
|
|
public void ModifieStats()
|
|
{
|
|
|
|
descrEvent.text = stats.endTurn();
|
|
}
|
|
}
|