| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- 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<NULLSDKCBListener>();
- 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<object, object> datas)
- {
- base.ReportAction(datas);
- Debug.LogWarning("[NULLSDK][ReportAction] current platform is not SDK !!!");
- }
- }
|