Exemplo n.º 1
0
    public void OnCompletedRotation()
    {
        IsReadyToGetReward = false;

        _UiWheelLucky.EnableAnimationReward(_WheelLuckyData.GetIcon(_RewardId));

        PlayerData.SaveSateWatchAdsForSpin(false);

        _UiWheelLucky.RefreshLanguageSpin();
    }
Exemplo n.º 2
0
    public void InitIcons(WheelLuckyData data)
    {
        for (int i = 0; i < data.GetSize(); i++)
        {
            if (_ImageIcons.Length > i)
            {
                _ImageIcons[i].sprite = data.GetIcon(i);
                _TextRenderer[i].text = ApplicationManager.Instance.AppendFromUnit(data.GetQuantity(i), 0);
            }
            else
            {
                Debug.Log("The Icons size Is smaller than data size");

                break;
            }
        }
    }