void didDismissInterstitial(CBLocation location) {
if ((ChosenLevel == "0") && (RealCurrentLevel == 0)) {
if (GameObject.Find ("WallSprite")!=null) {
GameObject.Find ("WallSprite").GetComponent<UISprite> ().alpha = 0f;
}
}
Chartboost.didDismissInterstitial -= didDismissInterstitial;
}
void didDisplayInterstitial(CBLocation location){
if ((ChosenLevel == "0") && (RealCurrentLevel == 0)) {
if (GameObject.Find ("WallSprite")!=null) {
GameObject.Find ("WallSprite").GetComponent<UISprite> ().alpha = 0.01f;
}
}
Chartboost.didDisplayInterstitial -= didDisplayInterstitial;
}
void OnEnable() {
GameObject.Find ("WallSprite").GetComponent<UISprite> ().alpha = 0f;
#if UNITY_ANDROID
Chartboost.didDisplayInterstitial += didDisplayInterstitial;
Chartboost.didDismissInterstitial += didDismissInterstitial;
#endif
}