// Use this for initialization protected override void Start() { base.Start(); cardLife = GetComponent <CardLife>(); textAttack.text = attackPower.ToString(); textLife.text = cardLife.GetCurrentLife().ToString(); }
// Use this for initialization private void Start() { base.Start(); CardLife cardLife = new CardLife(); cardLife.setCurrentLife(life); txtAtack.text = atk.ToString(); txtLife.text = cardLife.GetCurrentLife().ToString(); }