Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
    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;
        }
    }