예제 #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 LoadPlayerFromCard(CardElement elem)
 {
     m_id = elem.GetId();
     m_lastWillPow = elem.GetLastWill();
     m_name = elem.GetName();
     m_maxHp = elem.GetHp();
     m_curHp = m_maxHp;
     m_baseAttack = elem.GetAttack();
     m_defence = elem.GetDefence();
     GetComponent<SpriteRenderer>().color = elem.GetColor();
     if (m_lastWillFunc.GetPreviousWill() == ELastWill.BOOST)
         m_bonusAttack = 30;
 }
예제 #3
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();
 }