Skip to content

Commit

Permalink
Update MaxBannerVariable.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
DucNV2000 committed May 29, 2024
1 parent cd2a228 commit 5b9d484
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class MaxBannerVariable : AdUnitVariable
public BannerSize size;
public BannerPosition position;

private bool isBannerDestroyed = true;
private bool _isBannerDestroyed = true;
private bool _registerCallback = false;
private bool _isBannerShowing;
private bool _previousBannerShowStatus;
Expand All @@ -39,10 +39,10 @@ public override void Load()
_registerCallback = true;
}

if (isBannerDestroyed)
if (_isBannerDestroyed)
{
MaxSdk.CreateBanner(Id, ConvertPosition());
isBannerDestroyed = false;
_isBannerDestroyed = false;
}
#endif
}
Expand Down Expand Up @@ -83,7 +83,7 @@ public override void Destroy()
#if VIRTUESKY_ADS && ADS_APPLOVIN
if (string.IsNullOrEmpty(Id)) return;
_isBannerShowing = false;
isBannerDestroyed = true;
_isBannerDestroyed = true;
AdStatic.waitAppOpenClosedAction = null;
AdStatic.waitAppOpenDisplayedAction = null;
MaxSdk.DestroyBanner(Id);
Expand Down

0 comments on commit 5b9d484

Please sign in to comment.