void Update() { woodTxt.text = levelManager.wood.ToString(); moneyTxt.text = levelManager.money.ToString(); ironTxt.text = levelManager.coal.ToString(); creditTxt.text = SharedState.GetJsonText("credit") + ": \n" + levelManager.loan.ToString(); }
void OnLackOfResource(string type) { switch (type) { case "wood": lackOrResourceTxt.text = SharedState.GetJsonText("lack_of_wood", true); break; case "coal": lackOrResourceTxt.text = SharedState.GetJsonText("lack_of_coal", true); break; } }