mirror of
https://github.com/ConjureETS/Human-Farm-Tycoon.git
synced 2026-03-24 02:11:07 +00:00
39 lines
643 B
C#
39 lines
643 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using UnityEngine.UI;
|
|
|
|
public class WorkerToWoodController : MonoBehaviour{
|
|
|
|
public Text nbWorker;
|
|
public Text stats;
|
|
/*public Text nbRessourceGet;
|
|
public Text nbWorkerLeft;*/
|
|
|
|
public void AddWorker()
|
|
{
|
|
stats.text = stats.text + "+1";
|
|
UpdateView();
|
|
}
|
|
|
|
public void LessWorker()
|
|
{
|
|
stats.text = stats.text + "-1";
|
|
UpdateView();
|
|
}
|
|
|
|
public void UpdateView()
|
|
{
|
|
nbWorker.text = stats.text;
|
|
}
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
}
|