Beispiel #1
0
        /// <summary>
        ///send message to sdk.
        /// </summary>
        public void sendMessageToSDK()
        {
#if UNITY_IPHONE
            if (!isSupportSendMessageToSdk)
            {
                return;
            }

            if (this.sendMessageType == 0)
            {
                string parameter = sendMessageType + "," + servId + "," + ServName;
                AllSdkPlatform.sdkSendMessage(parameter);
            }
            else if (this.sendMessageType == 1)
            {
                string parameter = sendMessageType + "," + roleId + "," + roleName + "," + roleGrade;
                AllSdkPlatform.sdkSendMessage(parameter);
            }
            else if (this.sendMessageType == 2)
            {
                string parameter = sendMessageType + "," + roleId + "," + roleGrade;
                AllSdkPlatform.sdkSendMessage(parameter);
            }
            else if (this.sendMessageType == 3)
            {
                string parameter = sendMessageType + "," + eventName + "," + amount + "," + currencyCode;
                AllSdkPlatform.sdkSendMessage(parameter);
            }
#endif
        }
Beispiel #2
0
        /// <summary>
        /// send message to sdk.
        /// </summary>
        public void sendMessageToSDK()
        {
                        #if UNITY_IPHONE
            if (!isSupportSendMessageToSdk)
            {
                return;
            }

            string parameter = guid + "," + playerId + "," + level + "," + nickName + "," + serverId;
            AllSdkPlatform.sdkSendMessage(parameter);
                        #endif
        }