Пример #1
0
 public override void OnSuccess(WWWResult www)
 {
     if (Network.IsError)
     {
         switch (Network.ErrCode)
         {
         case Network.EErrCode.NoDevice:
         case Network.EErrCode.Authorize:
             this.OnFailed();
             return;
         }
     }
     WebAPI.JSON_BodyResponse <FlowNode_GetAccessToken.JSON_AccessToken> jsonObject = JSONParser.parseJSONObject <WebAPI.JSON_BodyResponse <FlowNode_GetAccessToken.JSON_AccessToken> >(www.text);
     if (jsonObject.body == null)
     {
         this.OnFailed();
     }
     else
     {
         Network.SessionID = jsonObject.body.access_token;
         MyMetaps.TrackEvent("device_id", MonoSingleton <GameManager> .Instance.DeviceId);
         Network.RemoveAPI();
         this.ActivateOutputLinks(1);
         ((Behaviour)this).set_enabled(false);
     }
 }
 public override void OnActivate(int pinID)
 {
     if (pinID != 0)
     {
         return;
     }
     MyMetaps.TrackEvent("device_id", MonoSingleton <GameManager> .Instance.DeviceId);
     Network.SessionID = Session.DefaultSession.AccessToken;
     ((Behaviour)this).set_enabled(false);
     this.ActivateOutputLinks(1);
 }
Пример #3
0
 public static bool TrackDebugInstall()
 {
     return(MyMetaps.TrackEvent("debug_install", "installed"));
 }
Пример #4
0
 public static bool TrackTutorialEnd()
 {
     return(MyMetaps.TrackEvent("tutorial", "end"));
 }
Пример #5
0
 public static bool TrackTutorialPoint(string point)
 {
     return(MyMetaps.TrackEvent("tutorial", point));
 }
Пример #6
0
 public static bool TrackTutorialBegin()
 {
     return(MyMetaps.TrackEvent("tutorial", "start"));
 }