public static string InterstitialLocationToString(InterstitialLocation location) { string result = null; switch (location) { case InterstitialLocation.SESSION_START: result = PsdkLocation.sessionStart; break; case InterstitialLocation.ACHIEVEMENT_WON: result = PsdkLocation.achievementWon; break; case InterstitialLocation.BACK_TO_MAIN_MENU: result = PsdkLocation.backToMainMenu; break; case InterstitialLocation.FAIL: result = PsdkLocation.fail; break; case InterstitialLocation.GENERIC_LOCATION: result = PsdkLocation.genericLocation; break; case InterstitialLocation.IN_SCENE: result = PsdkLocation.inScene; break; case InterstitialLocation.POST_LEVEL: result = PsdkLocation.postLevel; break; case InterstitialLocation.PRE_LEVEL: result = PsdkLocation.preLevel; break; case InterstitialLocation.REPLAY_LEVEL: result = PsdkLocation.replayLevel; break; case InterstitialLocation.RETRY: result = PsdkLocation.retry; break; case InterstitialLocation.SCENE_TRANSITIONS: result = PsdkLocation.sceneTransitions; break; default: break; } return(result); }
public bool ShowInterstitial(InterstitialLocation interstitialLocation, Action completionDelegate) { return(ShowLocation(InterstitialLocationToString(interstitialLocation), completionDelegate)); }