void HandleAccountInfo(IPacketMsg packetMsg) { var accInfo = new ClientMsgProtobuf <CMsgClientAccountInfo>(packetMsg); var callback = new AccountInfoCallback(accInfo.Body); this.Client.PostCallback(callback); }
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 }
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 }
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 }
void HandleAccountInfo( IPacketMsg packetMsg ) { var accInfo = new ClientMsgProtobuf<CMsgClientAccountInfo>( packetMsg ); var callback = new AccountInfoCallback( accInfo.Body ); this.Client.PostCallback( callback ); }
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 }