Example #1
0
        void HandleAccountInfo(IPacketMsg packetMsg)
        {
            var accInfo = new ClientMsgProtobuf <CMsgClientAccountInfo>(packetMsg);

            var callback = new AccountInfoCallback(accInfo.Body);

            this.Client.PostCallback(callback);
        }
Example #2
0
        void HandleAccountInfo(IPacketMsg packetMsg)
        {
            var accInfo = new ClientMsgProtobuf <CMsgClientAccountInfo>(packetMsg);

#if STATIC_CALLBACKS
            var callback = new AccountInfoCallback(Client, accInfo.Body);
            SteamClient.PostCallback(callback);
#else
            var callback = new AccountInfoCallback(accInfo.Body);
            this.Client.PostCallback(callback);
#endif
        }
Example #3
0
 public void SetAccountCallbackListener(Action <string,string> onGetAccountComplete,Action onGetAccountFail)
 {
     #if UNITY_ANDROID
     if(Application.platform == RuntimePlatform.Android){
         AccountInfoCallback  accountCallback = new AccountInfoCallback();
         accountCallback.onGetAccountComplete = onGetAccountComplete;
         accountCallback.onGetAccountFail = onGetAccountFail;
         jo.CallStatic("setAccountCallbackListener",accountCallback);
     }else{
         AUP.Utils.Message(TAG,"warning: must run in actual android device");
     }
     #endif
 }
Example #4
0
 public void SetAccountCallbackListener(Action <string, string> onGetAccountComplete, Action onGetAccountFail)
 {
             #if UNITY_ANDROID
     if (Application.platform == RuntimePlatform.Android)
     {
         AccountInfoCallback accountCallback = new AccountInfoCallback();
         accountCallback.onGetAccountComplete = onGetAccountComplete;
         accountCallback.onGetAccountFail     = onGetAccountFail;
         jo.CallStatic("setAccountCallbackListener", accountCallback);
     }
     else
     {
         AUP.Utils.Message(TAG, "warning: must run in actual android device");
     }
             #endif
 }
Example #5
0
        void HandleAccountInfo( IPacketMsg packetMsg )
        {
            var accInfo = new ClientMsgProtobuf<CMsgClientAccountInfo>( packetMsg );

            var callback = new AccountInfoCallback( accInfo.Body );
            this.Client.PostCallback( callback );
        }
Example #6
0
        void HandleAccountInfo( IPacketMsg packetMsg )
        {
            var accInfo = new ClientMsgProtobuf<CMsgClientAccountInfo>( packetMsg );

#if STATIC_CALLBACKS
            var callback = new AccountInfoCallback( Client, accInfo.Body );
            SteamClient.PostCallback( callback );
#else
            var callback = new AccountInfoCallback( accInfo.Body );
            this.Client.PostCallback( callback );
#endif
        }