-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added privacy htm
- Loading branch information
Brad Gearon
committed
Nov 18, 2020
1 parent
3680470
commit 171f80e
Showing
14 changed files
with
115 additions
and
29 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using System; | ||
using UnityEngine; | ||
using System.Collections; | ||
using UnityEngine.Advertisements; | ||
|
||
public class AdLauncher : MonoBehaviour { | ||
|
||
public string zoneId = "defaultVideoAndPictureZone"; | ||
|
||
void Start () { | ||
Advertisement.Initialize("1234567", true); | ||
} | ||
|
||
// Update is called once per frame | ||
void Update () { | ||
|
||
} | ||
|
||
public void ShowAdPlacement() | ||
{ | ||
if (string.IsNullOrEmpty(zoneId)) | ||
{ | ||
zoneId = null; | ||
} | ||
|
||
if (false && DateTime.Now < new DateTime(2016, 11, 24)) | ||
{ | ||
return; | ||
} | ||
|
||
ShowOptions options = new ShowOptions(); | ||
options.resultCallback = HandleShowResult; | ||
Advertisement.Show(options); | ||
} | ||
|
||
private void HandleShowResult(ShowResult result) | ||
{ | ||
switch (result) | ||
{ | ||
case ShowResult.Finished: | ||
Debug.Log("Video completed. Offer a reward to the player."); | ||
break; | ||
case ShowResult.Skipped: | ||
Debug.LogWarning("Video was skipped."); | ||
break; | ||
case ShowResult.Failed: | ||
Debug.LogError("Video failed to show."); | ||
break; | ||
} | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.