private void AddStat(StatMapEx model, bool isMainStat = false) { var statView = GetDisabledStatView(); if (statView is null) { throw new NotFoundComponentException <BulletedStatView>(); } statView.Show(model, isMainStat); }
public void Show(StatMapEx statMapEx, bool isMainStat) { if (statMapEx is null) { Hide(); return; } bulletMainImage.enabled = isMainStat; bulletSubImage.enabled = !isMainStat; if (isMainStat) { Show(statMapEx.StatType, statMapEx.ValueAsInt, statMapEx.AdditionalValueAsInt); } else { Show(statMapEx.StatType, statMapEx.TotalValueAsInt, 0); } }
public virtual void Show(StatMapEx statMapEx) { Show(statMapEx.StatType, statMapEx.TotalValueAsInt); }