예제 #1
0
 /// <summary>
 /// Event handler called when the <see cref="Promo" /> component finishes loading.
 /// </summary>
 void OnPromoComplete(Promo promo)
 {
     if (this.State != ControllerState.SceneWillDisappear && this.State != ControllerState.SceneDidDisappear)
     {
         this.TurnPromoContentOn(true);
     }
 }
예제 #2
0
 /// <summary>
 /// Event handler called when the <see cref="Promo" /> component has an error while loading.
 /// </summary>
 void OnPromoError(Promo promo)
 {
     Debug.Log(promo.Error);
     this.TurnPromoContentOff(false);
 }