Exemplo n.º 1
0
 void OnGUI()
 {
     if (GUI.Button(new Rect(0, 0, 200, 200), "Show"))
     {
         CrossPromotion.Show(domain);
     }
     GUILayout.Label(text);
 }
Exemplo n.º 2
0
 void Start()
 {
     CrossPromotion.ListenError(delegate(Error error, string message) {
         text += "\n" + error + ": " + message;
     });
     CrossPromotion.ListenClaimReward(delegate(string type, int value) {
         text += "\n" + type + " " + value;
     });
     CrossPromotion.ListenOnOpenAction(delegate() {
         text += "\n Open";
     });
     CrossPromotion.ListenInteractAction(delegate(Interact interact, CrossPromotionItemConfig appId) {
         text += "\n" + interact + " " + appId.name;
     });
     CrossPromotion.ListenOnCloseAction(delegate() {
         text += "\n Close";
     });
 }