Exemple #1
0
    public void InitWithWalker(Walker wk)
    {
        m_walker = wk;

        txtName.text = "Name: " + wk.StringAttr("name");
        txtLv.text   = "Lv: " + wk.IntAttr("lv").ToString();
        txtAtk.text  = "Atk: " + wk.atk.ToString();
        txtDef.text  = "Def: " + wk.def.ToString();
        txtCoin.text = "Coin: " + wk.CostCoinForUpgrade().ToString();
        txtSoul.text = "Soul: " + wk.CostSoulForUpgrade().ToString();

        btnUpgrade.interactable = m_walker.CanUpgrade();
    }