Tanks Multiplayer  1.5
Static Public Member Functions | Events | List of all members
UnityAdsManager

Manager handling the full workflow of showing video ads, reacting to completed/failed video views and resulting events. Implements a custom, percentage based chance for showing ads. Using Unity Ads. More...

Inheritance diagram for UnityAdsManager:

Static Public Member Functions

static UnityAdsManager GetInstance ()
 Returns a reference to this script instance. More...
 
static bool ShowAd (bool force=false)
 Tries to display a video ad. This could fail if an ad is not available or ready, the player requesting the ad is hosting the game - in which case showing an ad would pause the game for all clients - an ad was already shown or the percentage based chance has calculated to not show an ad for this attempt. All these checks can be skipped by setting the argument passed in to true, effectively forcing an ad to show. More...
 
static bool didShowAd ()
 Returns whether an ad has been shown already. More...
 

Events

static Action< ShowResult > adResultEvent
 Fired whenever a view completes, providing the result. More...
 

Detailed Description

Manager handling the full workflow of showing video ads, reacting to completed/failed video views and resulting events. Implements a custom, percentage based chance for showing ads. Using Unity Ads.

Member Function Documentation

static bool didShowAd ( )
static

Returns whether an ad has been shown already.

static UnityAdsManager GetInstance ( )
static

Returns a reference to this script instance.

static bool ShowAd ( bool  force = false)
static

Tries to display a video ad. This could fail if an ad is not available or ready, the player requesting the ad is hosting the game - in which case showing an ad would pause the game for all clients - an ad was already shown or the percentage based chance has calculated to not show an ad for this attempt. All these checks can be skipped by setting the argument passed in to true, effectively forcing an ad to show.

Event Documentation

Action<ShowResult> adResultEvent
static

Fired whenever a view completes, providing the result.


The documentation for this class was generated from the following file: