Ejemplo n.º 1
0
        // Use this for initialization
        public void Start(PetAttackBase petAtk)
        {
            attackName.text  = petAtk.NomeEmLinguas();
            txtPower.text    = petAtk.PotenciaCorrente.ToString();
            txtPeCost.text   = petAtk.CustoPE.ToString();
            txtStCost.text   = petAtk.CustoDeStamina.ToString();
            txtTypeName.text = TypeNameInLanguages.Get(petAtk.Tipo);
            imgAttack.sprite = ResourcesFolders.GetMiniAttack(petAtk.Nome);

            txtPeCost.transform.parent.gameObject.SetActive(true);
        }
Ejemplo n.º 2
0
 private void OnChangeAttack(MsgChangeSelectedAttack obj)
 {
     attackImg.sprite = ResourcesFolders.GetMiniAttack(obj.attackName);
     //= Resources.Load<Sprite>("miniGolpes/" + obj.attackName.ToString());
     ActiveInfoText(PetAttackBase.NomeEmLinguas(obj.attackName));
 }