예제 #1
0
 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();
 }
예제 #2
0
 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();
 }