private void OnInitResult(int code, string msg) { log(string.Format("UCCallbackMessage - OnInitResult: code={0}, msg={1}", code, msg)); //输出初始化结果到页面(接入后删除) SendMessage("setMessage", string.Format("UCCallbackMessage - OnInitResult: code={0}, msg={1}", code, msg)); if (code == UCStatusCode.SUCCESS) { log("init succeeded"); // //TODO: 可把创建和显示悬浮按钮移到合适的逻辑中 // UCGameSdk.createFloatButton (); Debug.Log("UCCallbackMessage::OnInitResult"); // 游戏自身逻辑 ThirdPartyPlatform.OnInitSDK(true); } else { log(string.Format("Failed initing UC game sdk, code={0}, msg={1}", code, msg)); //初始化失败处理 ThirdPartyPlatform.OnInitSDK(false); } }
/* * All callback methods from 91SDK * */ public void initSdkNotify(string args) { ParseReceiveParams(args); string result = GetReceiveParam(KeyResult); Debug.Log("[U3d2NdReceiver]: initSdkNotify------------------- the result is " + result); ThirdPartyPlatform.OnInitSDK(IsSuccess()); }
void OnInitSDK(JsonData json) { int code = (int)json[SDKConstants.KEY_ERROR_CODE]; // JsonData data = json[SDKConstants.KEY_JSON_DATA]; if (code == MiErrorCode.MI_XIAOMI_GAMECENTER_SUCCESS) { ThirdPartyPlatform.OnInitSDK(true); } }
public static void InitSDK() { Debug.Log("NdSDKAgent:InitSDK"); ThirdPartyPlatform.OnInitSDK(true); // init SDK before in java native // com.gfan.game.battleatlantic_91.U3dNdSDK // //Debug.Log("NdSDKAgent:InitSDK"); //AndroidNativeCallStatic(JavaClassUnity2NdSDK,"ndInitSDK", AppId, AppKey, DebugMode, (int)NdScreenOrientation.Landscape); }
//---------------------------------------------------------------------- void OnInitSDK(string args) { ThirdPartyPlatform.OnInitSDK(true); }
//---------------------------------------------------------------------- public void initSdkNotify(string args) { U3dGfanSender.ShowToast("initSdkNotify finishi..."); ThirdPartyPlatform.OnInitSDK(true); }
void OnInitSDK(JsonData json) { Debug.Log("NdSDKAgent: OnInitSDK"); ThirdPartyPlatform.OnInitSDK(true); }