private void OnHeartsChange(Mage mage) { if (hearts.Count != mage.GetMaxHearts()) Debug.LogError("No support now for changing max hearts"); for (int i = 0; i < mage.GetHearts(); ++i) { hearts[i].sprite = sprite_heart_full; } for (int i = mage.GetHearts(); i < mage.GetMaxHearts(); ++i) { hearts[i].sprite = sprite_heart_empty; } }
private void OnMageHeartsChange(Mage mage) { if (mage.GetHearts() == 0) { GG(GetOpponentNumber(mage.GetPlayerNumber())); } }