Exemplo n.º 1
0
 void I3RDPlatformSDK.Pay(int price, string billNo, string billTitle, string roleId, int zoneId)
 {
     if (JoyYouSDK.isInitialised)
     {
         JoyYouNativeInterface.ExchangeGoods(price, billNo, billTitle, roleId, zoneId);
     }
 }
Exemplo n.º 2
0
 void I3RDPlatformSDK.ShowCenterView()
 {
     if (JoyYouSDK.isInitialised)
     {
         JoyYouNativeInterface.ShowCenterView();
     }
 }
Exemplo n.º 3
0
 void I3RDPlatformSDK.Logout()
 {
     if (JoyYouSDK.isInitialised)
     {
         JoyYouNativeInterface.Logout();
     }
 }
Exemplo n.º 4
0
 void I3RDPlatformSDK.ShowLoginViewWithType(int type)
 {
     if (JoyYouSDK.isInitialised)
     {
         JoyYouNativeInterface.ShowLoginViewWithType(type);
     }
 }
Exemplo n.º 5
0
 void I3RDPlatformSDKEX.RequestRealUserRegister(string uid, bool IsQuery)
 {
     if (JoyYouSDK.isInitialised)
     {
         JoyYouNativeInterface.RequestRealUserRegister(uid, IsQuery);
     }
 }
Exemplo n.º 6
0
 void I3RDPlatformSDKEX.SendGameExtData(string type, string jsonData)
 {
     if (JoyYouSDK.isInitialised)
     {
         JoyYouNativeInterface.SendGameExtData(type, jsonData);
     }
 }
Exemplo n.º 7
0
 public static void setAccountType(GameAccountType type)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "setAccountTypeByString", new object[]
     {
         type.ToString()
     });
 }
Exemplo n.º 8
0
 void I3RDPlatformSDKEX.QuitGame(string paramString)
 {
     if (JoyYouSDK.isInitialised)
     {
         JoyYouNativeInterface.QuitGame(paramString);
     }
 }
Exemplo n.º 9
0
 public static void setAccountGameServer(string gameServer)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "setAccountGameServer", new object[]
     {
         gameServer
     });
 }
Exemplo n.º 10
0
 public static void AdvBannerRefresh(int sec)
 {
     JoyYouNativeInterface.AndroidInvoke("__IAdvertisement", "BannerRefresh", new object[]
     {
         sec
     });
 }
Exemplo n.º 11
0
 public static void setLogEnable_StatisticalDataItf(bool bEnable)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "setLogEnable", new object[]
     {
         bEnable
     });
 }
Exemplo n.º 12
0
 public static void setAccountGender(GameGender gender)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "setAccountGenderByString", new object[]
     {
         gender.ToString()
     });
 }
Exemplo n.º 13
0
 private static void U3D_showLoginViewWithType(int type)
 {
     JoyYouNativeInterface.AndroidInvoke("__ICommonSDKPlatform", "Login", new object[]
     {
         type
     });
 }
Exemplo n.º 14
0
        private static T AndroidInvoke <T>(string _itf_obj_name, string method, params object[] args)
        {
            T result = default(T);

            if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
            {
                using (AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
                {
                    using (AndroidJavaObject @static = androidJavaClass.GetStatic <AndroidJavaObject>("currentActivity"))
                    {
                        using (AndroidJavaClass androidJavaClass2 = new AndroidJavaClass("com.joyyou.itf.JoyyouInterfaceFactory"))
                        {
                            string itfInitMethodName = JoyYouNativeInterface.getItfInitMethodName(_itf_obj_name);
                            androidJavaClass2.CallStatic(itfInitMethodName, new object[]
                            {
                                @static
                            });
                            using (AndroidJavaObject static2 = androidJavaClass2.GetStatic <AndroidJavaObject>(_itf_obj_name))
                            {
                                return(static2.Call <T>(method, args));
                            }
                        }
                    }
                }
                return(result);
            }
            return(result);
        }
Exemplo n.º 15
0
 public static void onLogin(string userId)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "onLogin", new object[]
     {
         userId
     });
 }
Exemplo n.º 16
0
 public static void onAccountMissionCompleted(string missionId)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "onAccountMissionCompleted", new object[]
     {
         missionId
     });
 }
Exemplo n.º 17
0
 public static void setAccountAge(int age)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "setAccountAge", new object[]
     {
         age
     });
 }
Exemplo n.º 18
0
 public static void setAccountLevel(int level)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "setAccountLevel", new object[]
     {
         level
     });
 }
Exemplo n.º 19
0
 public static void setAccountName(string name)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "setAccountName", new object[]
     {
         name
     });
 }
Exemplo n.º 20
0
 void I3RDPlatformSDKEX.ShowFloatToolkit(bool visible, double x, double y)
 {
     if (JoyYouSDK.isInitialised)
     {
         JoyYouNativeInterface.ShowFloatToolkit(visible, x, y);
     }
 }
Exemplo n.º 21
0
 public static void initAccount(string accountId)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "initAccount", new object[]
     {
         accountId
     });
 }
Exemplo n.º 22
0
 public static void setStandaloneGame(bool isSG)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "setStandaloneGame", new object[]
     {
         isSG
     });
 }
Exemplo n.º 23
0
 public static void initAppCPA(string appId, string channelId)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "initAppCPA", new object[]
     {
         appId,
         channelId
     });
 }
Exemplo n.º 24
0
 public static void onAccountCurrencyReward(double virtualCurrencyAmount, string reason)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "onAccountCurrencyReward", new object[]
     {
         virtualCurrencyAmount,
         reason
     });
 }
Exemplo n.º 25
0
 public static void onAccountMissionFailed(string missionId, string cause)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "onAccountMissionFailed", new object[]
     {
         missionId,
         cause
     });
 }
Exemplo n.º 26
0
 public static void onAccountUse(string item, int itemNumber)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "onAccountUse", new object[]
     {
         item,
         itemNumber
     });
 }
Exemplo n.º 27
0
 public static void RequestRealUserRegister(string uid, bool IsQuery)
 {
     JoyYouNativeInterface.AndroidInvoke("__ICommonSDKPlatform", "RequestRealUserRegister", new object[]
     {
         uid,
         IsQuery
     });
 }
Exemplo n.º 28
0
 public static void initStatisticalGame(string appId, string partnerId)
 {
     JoyYouNativeInterface.AndroidInvoke("__IStatisticalData", "initStatisticalGame", new object[]
     {
         appId,
         partnerId
     });
 }
Exemplo n.º 29
0
        public override void DoInit()
        {
            base.DoInit();
            string format   = "{{ \"appId\":\"{0}\", \"appKey\":\"{1}\" }}";
            string jsonData = string.Format(format, this.AppId, this.AppKey);

            JoyYouNativeInterface.ShareSdkInit(1, jsonData);
        }
Exemplo n.º 30
0
        public override void InitSDK()
        {
            string appKey = base.appKey;
            string closeRechargeAlertMsg = base.closeRechargeAlertMsg;
            bool   logEnable             = base.logEnable;

            JoyYouNativeInterface.initAdv(appKey, closeRechargeAlertMsg, logEnable);
        }