Пример #1
0
 override public void OnProjectUnbound()
 {
     AdvertisementSettings.SetEnabledServiceWindow(false);
     AdvertisementSettings.SetGameId(RuntimePlatform.IPhonePlayer, "");
     AdvertisementSettings.SetGameId(RuntimePlatform.Android, "");
     AdvertisementSettings.testMode = false;
 }
Пример #2
0
        void SetGameIds(RequestGameIds.Response gameIds)
        {
            AdvertisementSettings.SetGameId(RuntimePlatform.IPhonePlayer, gameIds.iOSGameKey);
            AdvertisementSettings.SetGameId(RuntimePlatform.Android, gameIds.androidGameKey);

            GameIdsUpdated?.Invoke();
        }
Пример #3
0
 public override void OnProjectUnbound()
 {
     AdvertisementSettings.enabled             = false;
     AdvertisementSettings.initializeOnStartup = false;
     AdvertisementSettings.SetPlatformEnabled(RuntimePlatform.IPhonePlayer, false);
     AdvertisementSettings.SetPlatformEnabled(RuntimePlatform.Android, false);
     AdvertisementSettings.SetGameId(RuntimePlatform.IPhonePlayer, "");
     AdvertisementSettings.SetGameId(RuntimePlatform.Android, "");
     AdvertisementSettings.testMode = false;
 }
Пример #4
0
        void SetUpGameId()
        {
            var unavailableGameId = L10n.Tr("N/A");

            AdvertisementSettings.SetGameId(RuntimePlatform.IPhonePlayer, m_AppleGameId);
            AdvertisementSettings.SetGameId(RuntimePlatform.Android, m_AndroidGameId);
            if (m_EnabledState.m_AndroidGameIdTextField != null)
            {
                m_EnabledState.m_AndroidGameIdTextField.value = m_AndroidGameId ?? unavailableGameId;
            }
            if (m_EnabledState.m_AppleGameIdTextField != null)
            {
                m_EnabledState.m_AppleGameIdTextField.value = m_AppleGameId ?? unavailableGameId;
            }
        }
Пример #5
0
 public void SetAndroidGameId(string value)
 {
     AdvertisementSettings.SetGameId(RuntimePlatform.Android, value);
 }
Пример #6
0
 public void SetIOSGameId(string value)
 {
     AdvertisementSettings.SetGameId(RuntimePlatform.IPhonePlayer, value);
 }
Пример #7
0
 public void SetAppleTVGameId(string value)
 {
     AdvertisementSettings.SetGameId(RuntimePlatform.tvOS, value);
 }
Пример #8
0
 private void SetGameIds(string appleGameId, string androidGameId)
 {
     AdvertisementSettings.SetGameId(RuntimePlatform.IPhonePlayer, appleGameId);
     AdvertisementSettings.SetGameId(RuntimePlatform.Android, androidGameId);
     gameIdsUpdatedEvent?.Invoke();
 }