Exemplo n.º 1
0
        private void OnKongregateAPILoaded(string userInfo)
        {
            Log.Info("[Kongregate] API Loaded");
            Kongregate.APILoaded            = true;
            Kongregate.IsWaitingForPurchase = false;
            string[] array = userInfo.Split(new char[]
            {
                '|'
            });
            int    num           = int.Parse(array[0]);
            string username      = array[1];
            string gameAuthToken = array[2];

            if (num == 0)
            {
                Kongregate.SetIsGuest(true);
            }
            else
            {
                Kongregate.SetUserId(array[0]);
                Kongregate.SetUsername(username);
                Kongregate.SetIsGuest(false);
                Kongregate.m_GameAuthToken = gameAuthToken;
            }
            App.ConnectToKongregate();
        }
Exemplo n.º 2
0
 private void OnLogin(string userInfo)
 {
     string[] array = userInfo.Split(new char[]
     {
         '|'
     });
     Kongregate.SetUserId(array[0]);
     Kongregate.SetUsername(array[1]);
     Kongregate.SetIsGuest(false);
     Kongregate.m_GameAuthToken = array[2];
     if (App.State == null)
     {
         App.Init();
     }
     App.ConnectToKongregate();
 }