Пример #1
0
    public UIItemView SetId(Sprite icon)
    {
        item_name = ApplicationLanguage.GetItemName(level);
        sprite_renderer.sprite = icon;

        return(this);
    }
Пример #2
0
        public void ShowView(CarDataProperties _unlockCarProperties, Sprite rewardCarSprite, int RewardAmount)
        {
            ObscuredInt nameLevel = _unlockCarProperties.Level > 30? (ObscuredInt)(_unlockCarProperties.Level.GetDecrypted() - 30) : _unlockCarProperties.Level;

            CarName.text         = ApplicationLanguage.GetItemName(nameLevel);
            CarLevel.text        = string.Format("Lv." + _unlockCarProperties.Level);
            CarImage.sprite      = _unlockCarProperties.Icon;
            Earning.fillAmount   = _unlockCarProperties.VEarning;
            Timing.fillAmount    = _unlockCarProperties.VSpeed;
            Damage.fillAmount    = _unlockCarProperties.VDamage;
            RewardCarIcon.sprite = rewardCarSprite;
            RewardCarAmount.text = string.Format("+" + RewardAmount);
        }
Пример #3
0
    public void UnlockItemLevel(int item_level)
    {
        var id   = GameDataManager.Instance._CarNodeGroupData.GetIcon(item_level);
        var data = _ItemShopDetail.GetItem(item_level);

        _Level = item_level;

        _UiUnlockManager.Init(id, data.Speed, data.Earning, data.Damage, ApplicationLanguage.GetItemName(item_level), GameData.Instance.ItemDataGroup.GetDataItemWithLevel(item_level));
        _UiUnlockManager.SetShareFacebook(ApplicationManager.Instance.AppendFromUnit(_ShareData.GetRewardValue(_Level), _ShareData.GetRewardUnit(_Level)));

        this.PostMissionEvent(MissionEnums.MissionId.ReachItems, item_level);

        EnableHud();
    }