Esempio n. 1
0
        public static void setPushStatus(bool pushEnable, bool nightPushEnable, bool adPushEnable)
        {
            Debug.Log("[GPUnity][Call] setPush : " + pushEnable + " NightPush : " + nightPushEnable + " adPush : " + adPushEnable);

#if UNITY_EDITOR
            {
                Debug.Log("GamePot - UNITY EDITOR DUMMY CALLBACK setPushState always success");
                // Temporary user info for UnityEditor Development mode
                if (GamePotEventListener.s_instance != null)
                {
                    GamePotEventListener.s_instance.onPushStatusSuccess();
                }
                else
                {
                    Debug.LogError("GamePot UnityEditor listener is NULL");
                }
            }
#elif UNITY_IOS
            GamePotUnityPluginiOS.setPushState(pushEnable, nightPushEnable, adPushEnable);
#elif UNITY_ANDROID
            GamePotUnityPluginAOS.setPushState(pushEnable, nightPushEnable, adPushEnable);
#endif
        }