IEnumerator SettingUI(CardElement card) { yield return null; elem = card; Debug.Log(card.GetName() + " init"); _name.text = elem.GetName(); _level.text = elem.GetCost().ToString(); if (_picture != null) _picture.color = elem.GetColor(); if (_lastWill != null) _lastWill.text = elem.GetLastWillDesc(); }
public void SetParams(CardElement other) { _isUnlocked = other._isUnlocked; m_id = other.GetId(); m_cost = other.GetCost(); m_name = other.GetName(); m_lastWillPow = other.GetLastWill(); m_lastWillDescription = other.GetLastWillDesc(); m_maxHp = other.GetHp(); m_baseAttack = other.GetAttack(); m_defence = other.GetDefence(); }