public void OnCompletedRotation() { IsReadyToGetReward = false; _UiWheelLucky.EnableAnimationReward(_WheelLuckyData.GetIcon(_RewardId)); PlayerData.SaveSateWatchAdsForSpin(false); _UiWheelLucky.RefreshLanguageSpin(); }
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; } } }