Пример #1
0
 public static void getAdvIDFA()
 {
     if (Application.platform == RuntimePlatform.OSXEditor || Application.platform == RuntimePlatform.WindowsEditor)
     {
         JoyYouInterfaceSimulator.getAdvIDFA();
     }
 }
Пример #2
0
 public static void ExchangeGoods(int price, string billNo, string billTitle, string roleId, int zoneId)
 {
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         JoyYouNativeInterface.U3D_exchangeGoods(price, billNo, billTitle, roleId, zoneId);
     }
     else
     {
         JoyYouInterfaceSimulator.Pay();
     }
 }
Пример #3
0
 public static void Logout()
 {
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         JoyYouNativeInterface.U3D_logout();
     }
     else
     {
         JoyYouInterfaceSimulator.Logout();
     }
 }
Пример #4
0
 public static void HLLogout()
 {
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         JoyYouNativeInterface.AndroidInvoke("__ICommonSDKPlatform", "Logout", new object[0]);
     }
     else
     {
         JoyYouInterfaceSimulator.Logout();
     }
 }
Пример #5
0
 public static void GameRecordItf_ShowPlayerClub()
 {
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         JoyYouNativeInterface.AndroidInvoke("__IGameRecord", "ShowPlayerClub", new object[0]);
     }
     else
     {
         JoyYouInterfaceSimulator.GameRecordItf_ShowPlayerClub();
     }
 }
Пример #6
0
 public static void QuitGame(string paramString)
 {
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         JoyYouNativeInterface.AndroidInvoke("__ICommonSDKPlatform", "Release", new object[0]);
     }
     else
     {
         JoyYouInterfaceSimulator.QuitGame(paramString);
     }
 }
Пример #7
0
 public static void ShowLoginView()
 {
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         JoyYouNativeInterface.U3D_showLoginView();
     }
     else
     {
         JoyYouInterfaceSimulator.ShowLoginView();
     }
 }
Пример #8
0
 public static void GameRecordItf_ShowCtrlBar(bool visible)
 {
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         JoyYouNativeInterface.AndroidInvoke("__IGameRecord", "ShowControlBar", new object[]
         {
             visible
         });
     }
     else
     {
         JoyYouInterfaceSimulator.GameRecordItf_ShowCtrlBar(visible);
     }
 }
Пример #9
0
 public static void SendGameExtData(string type, string jsonData)
 {
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         JoyYouNativeInterface.AndroidInvoke("__ICommonSDKPlatform", "SendGameExtData", new object[]
         {
             type,
             jsonData
         });
     }
     else
     {
         JoyYouInterfaceSimulator.SendGameExtData(type, jsonData);
     }
 }
Пример #10
0
 public static void InitGameRecordItf(string appKey, string _params)
 {
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         JoyYouNativeInterface.AndroidInvoke("__IGameRecord", "Init", new object[]
         {
             appKey,
             _params
         });
     }
     else
     {
         JoyYouInterfaceSimulator.InitGameRecordItf(appKey, _params);
     }
 }
Пример #11
0
 public static void HLRegister(string username, string password, string email)
 {
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         JoyYouNativeInterface.AndroidInvoke("__ICommonSDKPlatform", "Register", new object[]
         {
             username,
             password,
             email
         });
     }
     else
     {
         JoyYouInterfaceSimulator.onRegister();
     }
 }
Пример #12
0
 public static void HLLogin(string username, string password)
 {
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         JoyYouNativeInterface.AndroidInvoke("__ICommonSDKPlatform", "Login", new object[]
         {
             username,
             password,
             string.Empty
         });
     }
     else
     {
         JoyYouInterfaceSimulator.ShowLoginView();
     }
 }
Пример #13
0
        public static string GetSDKConfig(string type, string jsonData)
        {
            string result = string.Empty;

            if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
            {
                result = JoyYouNativeInterface.AndroidInvoke <string>("__ICommonSDKPlatform", "GetSDKConfig", new object[]
                {
                    type,
                    jsonData
                });
            }
            else
            {
                result = JoyYouInterfaceSimulator.GetSDKConfig(type, jsonData);
            }
            return(result);
        }
Пример #14
0
        public static bool CheckStatus(string type, string jsonData)
        {
            bool result;

            if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
            {
                result = JoyYouNativeInterface.AndroidInvoke <bool>("__ICommonSDKPlatform", "CheckStatus", new object[]
                {
                    type,
                    jsonData
                });
            }
            else
            {
                result = JoyYouInterfaceSimulator.CheckStatus(type, jsonData);
            }
            return(result);
        }
 public static void ShowLoginViewWithType(int type)
 {
     JoyYouInterfaceSimulator.SendObjMsg("LoginCallBack", "Simulating API: \"ShowLoginViewWithType(int type)\"");
 }
 public static void Pay()
 {
     JoyYouInterfaceSimulator.SendObjMsg("PayCallBack", "Simulating API: \"Pay()\"");
 }
 public static void ShowCenterView()
 {
     JoyYouInterfaceSimulator.SendObjMsg("UserCenteredClosedCallBack", "Simulating API: \"ShowCenterView()\"");
 }
 public static void VerifyingUpdatePassCallBack(string msg)
 {
     JoyYouInterfaceSimulator.SendObjMsg("VerifyingUpdatePassCallBack", "Simulating API: \"ShowLoginView\"");
 }
 public static void onRegister()
 {
     Debug.Log("onRegister");
     JoyYouInterfaceSimulator.SendObjMsg("RegisterCallBack", "Simulating API: \"HLRegister\"");
 }
 public static void QuitGame(string paramString)
 {
     Debug.Log("QuitGame");
     JoyYouInterfaceSimulator.SendObjMsg("QuitGame", "Simulating API: \"QuitGame\"");
 }
 public static void getAdvIDFA()
 {
     Debug.Log("getAdvIDFA");
     JoyYouInterfaceSimulator.SendObjMsg("NotifyIDFA", "IDFA=XXXXXXXXXXXXXXXXX");
 }
 public static void Logout()
 {
     JoyYouInterfaceSimulator.SendObjMsg("LogoutCallBack", "Simulating API: \"Logout()\"");
 }