Пример #1
0
        private bool getLinkingStatus(NCommon.LinkingType linkingType)
        {
            List <NLinkingInfo> linkedList = GamePot.getLinkedList();

            if (linkedList != null)
            {
                foreach (NLinkingInfo item in linkedList)
                {
                    if (linkingType == item.provider)
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }
        public static void deleteLinking(NCommon.LinkingType linkingType)
        {
#if UNITY_IOS
            {
                deleteLinkingByUnity(linkingType.ToString());
            }
#elif UNITY_EDITOR
            {
                Debug.Log("GamePot - UNITY EDITOR DUMMY CALLBACK deleteLinking always failure");
                // Temporary user info for UnityEditor Development mode
                if (GamePotEventListener.s_instance != null)
                {
                    GamePotEventListener.s_instance.onDeleteLinkingFailure("");
                }
                else
                {
                    Debug.LogError("GamePot UnityEditor listener is NULL");
                }
            }
#endif
        }
Пример #3
0
        public static void createLinking(NCommon.LinkingType linkType)
        {
#if UNITY_EDITOR
            {
                Debug.Log("GamePot - UNITY EDITOR DUMMY CALLBACK createLinking always cancelled");
                // Temporary user info for UnityEditor Development mode
                if (GamePotEventListener.s_instance != null)
                {
                    GamePotEventListener.s_instance.onCreateLinkingCancel("");
                }
                else
                {
                    Debug.LogError("GamePot UnityEditor listener is NULL");
                }
            }
#elif UNITY_IOS
            GamePotUnityPluginiOS.createLinking(linkType);
#elif UNITY_ANDROID
            GamePotUnityPluginAOS.createLinking(linkType);
#endif
        }
Пример #4
0
        public static void createLinking(NCommon.LinkingType linkType)
        {
#if UNITY_ANDROID
            {
                if (mGamePotClass != null)
                {
                    mGamePotClass.CallStatic("createLinking", linkType.ToString());
                }
            }
#elif UNITY_EDITOR
            {
                Debug.Log("GamePot - UNITY EDITOR DUMMY CALLBACK createLinking always cancelled");
                // Temporary user info for UnityEditor Development mode
                if (GamePotEventListener.s_instance != null)
                {
                    GamePotEventListener.s_instance.onCreateLinkingCancel("");
                }
                else
                {
                    Debug.LogError("GamePot UnityEditor listener is NULL");
                }
            }
#endif
        }
Пример #5
0
 /// <summary>
 /// Delete Linking (callback delegate)
 /// </summary>
 /// <param name="linkType"></param>
 /// <param name="cbDeleteLinking">Callback Function</param>
 public static void deleteLinking(NCommon.LinkingType linkType, GamePotCallbackDelegate.CB_Common cbDeleteLinking)
 {
     GamePotEventListener.cbDeleteLinking = cbDeleteLinking;
     deleteLinking(linkType);
 }
Пример #6
0
 /// <summary>
 /// Create Linking (callback delegate)
 /// </summary>
 /// <param name="linkType"></param>
 /// <param name="cbCreateLinking">Callback Function</param>
 public static void createLinking(NCommon.LinkingType linkType, GamePotCallbackDelegate.CB_CreateLinking cbCreateLinking)
 {
     GamePotEventListener.cbCreateLinking = cbCreateLinking;
     createLinking(linkType);
 }