| | |
| | | import android.app.AlertDialog; |
| | | |
| | | import com.secondworld.sdk.GameApp; |
| | | import com.secondworld.sdk.PlatformDiff; |
| | | import com.secondworld.sdk.UnityMsgHandler; |
| | | import com.secondworld.sdk.utils.CodeA2U; |
| | | import com.secondworld.sdk.utils.CodeU2A; |
| | |
| | | import com.secondworld.sdk.utils.LogUtil; |
| | | import com.unity3d.player.UnityPlayer; |
| | | |
| | | import org.json.JSONException; |
| | | import org.json.JSONObject; |
| | | |
| | | import java.util.HashMap; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void process(JSONObject json) { |
| | | public void process(JSONObject json) throws JSONException { |
| | | GameApp.I.appId = json.getString("appID"); |
| | | |
| | | long size = DeviceUtil.getTotalRAMSize() / 1024 / 1024; |
| | | LogUtil.debug("CmdInit", "内存:" + size + " mb"); |
| | | if (size < 1024) { |
| | |
| | | //通知sdk初始化完成 |
| | | _msgStruct.clear(); |
| | | _msgStruct.put("code", CodeA2U.SdkInitComplete); |
| | | _msgStruct.put("channelPlatform", PlatformDiff.I.platformName()); |
| | | UnityMsgHandler.sendMessageToUnity(_msgStruct); |
| | | LogUtil.debug("CmdInit", "Sdk初始化完成"); |
| | | } |