예제 #1
0
        private void AddStat(StatMapEx model, bool isMainStat = false)
        {
            var statView = GetDisabledStatView();

            if (statView is null)
            {
                throw new NotFoundComponentException <BulletedStatView>();
            }
            statView.Show(model, isMainStat);
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public virtual void Show(StatMapEx statMapEx)
 {
     Show(statMapEx.StatType, statMapEx.TotalValueAsInt);
 }