示例#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);
        }
示例#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));
 }