using System.Collections; using System.Collections.Generic; using UnityEngine; public class NULLSDKAndroid : SDKBase { //ISDKCallBack sdkCB; public NULLSDKCBListener uLLSDKCBListener; public NULLSDKAndroid() { uLLSDKCBListener = SDKMgr.Instance.gameObject.AddComponent(); SDKName = "PC"; } public override void CreateRole() { GameRoleInfo gameRoleInfo = SDKMgr.Instance.GetGameRoleInfo(); if (gameRoleInfo == null || !gameRoleInfo.Valid()) { Debug.LogError("[NULLSDK][CreateRole] GameRoleInfo is null or not valid !!!"); return; } Debug.LogWarning("[NULLSDK][CreateRole] current platform is not SDK !!!"); } public override void EnterGame() { GameRoleInfo gameRoleInfo = SDKMgr.Instance.GetGameRoleInfo(); if (gameRoleInfo == null || !gameRoleInfo.Valid()) { Debug.LogError("[NULLSDK][EnterGame] GameRoleInfo is null or not valid !!!"); return; } Debug.LogWarning("[NULLSDK][EnterGame] current platform is not SDK !!!"); } public override void UpdateRoleLv() { GameRoleInfo gameRoleInfo = SDKMgr.Instance.GetGameRoleInfo(); if (gameRoleInfo == null || !gameRoleInfo.Valid()) { Debug.LogError("[NULLSDK][UpdateRoleLv] GameRoleInfo is null or not valid !!!"); return; } Debug.LogWarning("[NULLSDK][UpdateRoleLv] current platform is not SDK !!!"); } public override void ExitGame() { GameRoleInfo gameRoleInfo = SDKMgr.Instance.GetGameRoleInfo(); if (gameRoleInfo == null || !gameRoleInfo.Valid()) { Debug.LogError("[NULLSDK][ExitGame] GameRoleInfo is null or not valid !!!"); return; } Debug.LogWarning("[NULLSDK][ExitGame] current platform is not SDK !!!"); } public override bool Exit() { //throw new System.NotImplementedException(); return false; } public override bool Quit() { return false; } public override void Init() { base.Init(); //sdkCB = sdkcb; uLLSDKCBListener.InitSuccessCB(null); } public override void Login() { //throw new System.NotImplementedException(); uLLSDKCBListener.LoginSucessCB(null); } public override void Logout() { //throw new System.NotImplementedException(); } public override void Pay(int goodsId, string goodsName, string goodsDesc, int count, float amount, string cpOrderId, string extrasParams) { //throw new System.NotImplementedException(); } public override void SwitchAccount() { //throw new System.NotImplementedException(); } public override void CallInitSuccessCB() { SDKMgr.Instance.SetInited(true); SDKEventUtil.SendMessage(SDKCBEnum.INIT_SUCCESS_CB); } public override void CallLoginSuccessCB() { throw new System.NotImplementedException(); } public override bool IsReportAction() { return true; } public override void ReportAction(Dictionary datas) { base.ReportAction(datas); Debug.LogWarning("[NULLSDK][ReportAction] current platform is not SDK !!!"); } }