Skip to content

Commit

Permalink
fix cell button flow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonny-jeahyunchoi committed Nov 20, 2023
1 parent 9ccdb0c commit 9eec495
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class RewardCell
[SerializeField]
public Button TooltipButton;

private bool isNotPremium = false;
private IDisposable disposable;
private ItemBase itemBaseForToolTip = null;

Expand Down Expand Up @@ -104,6 +105,7 @@ public void SetData(SeasonPassServiceClient.ItemInfoSchema itemInfo, SeasonPassS
if(!avatarInfo.IsPremium && !isNormal)
{
ItemView.LevelLimitObject.SetActive(true);
isNotPremium = true;
}
else
{
Expand All @@ -120,7 +122,7 @@ public void SetData(SeasonPassServiceClient.ItemInfoSchema itemInfo, SeasonPassS
return;
AudioController.PlayClick();

if (ItemView.LevelLimitObject.activeSelf)
if (ItemView.LevelLimitObject.activeSelf && isNotPremium)
{
OneLineSystem.Push(MailType.System,
L10nManager.Localize("NOTIFICATION_SEASONPASS_PREMIUM_LIMIT_UNLOCK_GUIDE"),
Expand Down

0 comments on commit 9eec495

Please sign in to comment.