/**
  * 实名注册
  */
 void realNameRegister()
 {
     if (AnySDKUser.getInstance().isFunctionSupported("realNameRegister"))
     {
         AnySDKUser.getInstance().callFuncWithParam("realNameRegister");
     }
 }
 /**
  * 切换账号
  */
 void accountSwitch()
 {
     if (AnySDKUser.getInstance().isFunctionSupported("accountSwitch"))
     {
         AnySDKUser.getInstance().callFuncWithParam("accountSwitch");
     }
 }
 /**
  * 防沉迷查询
  */
 void antiAddictionQuery()
 {
     if (AnySDKUser.getInstance().isFunctionSupported("antiAddictionQuery"))
     {
         AnySDKUser.getInstance().callFuncWithParam("antiAddictionQuery");
     }
 }
 /**
  * 隐藏Toolbar
  */
 void hideToolBar()
 {
     if (AnySDKUser.getInstance().isFunctionSupported("hideToolBar"))
     {
         AnySDKUser.getInstance().callFuncWithParam("hideToolBar");
     }
 }
 /**
  * 进入平台
  */
 void enterPlatform()
 {
     if (AnySDKUser.getInstance().isFunctionSupported("enterPlatform"))
     {
         AnySDKUser.getInstance().callFuncWithParam("enterPlatform");
     }
 }
 /**
  * 注销
  */
 void logout()
 {
     if (AnySDKUser.getInstance().isFunctionSupported("logout"))
     {
         AnySDKUser.getInstance().callFuncWithParam("logout");
     }
 }
 /**
  * 显示Toolbar
  */
 void showToolBar(ToolBarPlace align)
 {
     if (AnySDKUser.getInstance().isFunctionSupported("showToolBar"))
     {
         AnySDKParam param = new AnySDKParam((int)align);
         AnySDKUser.getInstance().callFuncWithParam("showToolBar", param);
     }
 }
 /**
  * 把游戏数据传递到SDK服务端
  */
 void submitLoginGameRole()
 {
     if (AnySDKUser.getInstance().isFunctionSupported("submitLoginGameRole"))
     {
         Dictionary <string, string> userInfo = new Dictionary <string, string>();
         userInfo["roleId"]    = "123456";
         userInfo["roleName"]  = "test";
         userInfo["roleLevel"] = "10";
         userInfo["zoneId"]    = "123";
         userInfo["zoneName"]  = "test";
         userInfo["dataType"]  = "1";
         userInfo["ext"]       = "login";
         AnySDKParam param = new AnySDKParam(userInfo);
         AnySDKUser.getInstance().callFuncWithParam("submitLoginGameRole", param);
     }
 }
Example #9
0
 void Start()
 {
     _instance = AnySDKUser.getInstance();
     _instance.setListener(this, "UserExternalCall");
 }
Example #10
0
 /**
  * 登录
  */
 void login()
 {
     AnySDKUser.getInstance().login();
 }