示例#1
0
 void ShowSDKSection(string sdk, ref bool enabled)
 {
     selectedServiceName = _serviceSettings[sdk].GetName();
     if (!_serviceSettings[sdk].HasSDK())
     {
         _serviceSettings[sdk].ShowSDKNotFoundMessage();
         _serviceSettings[sdk].ShowSDKDownloadButton();
     }
     else
     {
         bool isEnabled = enabled;
         _serviceSettings[sdk].ShowSDKToggleButton(ref enabled);
         _serviceSettings[sdk].ShowSettings();
         if (isEnabled != enabled)
         {
             if (!enabled)
             {
                 selectedServices = new TBEditorServiceDefines.Services();
             }
             else
             {
                 selectedServices = TBEditorServiceDefines.GetServicesStruct(_serviceSettings[sdk].GetService());
             }
         }
     }
 }
示例#2
0
        static void RefreshSettings()
        {
            _serviceSettings = new Dictionary <string, TBEditorServiceSettingsBase>();
            _serviceSettings.Add(TBOculusEditorServiceSettings.instance.GetName(), TBOculusEditorServiceSettings.instance);
            _serviceSettings.Add(TBSteamworksEditorServiceSettings.instance.GetName(), TBSteamworksEditorServiceSettings.instance);

            #if TB_HAS_UNITY_PS4
            sdkSettings.Add(TBPSVREditorServiceSettings.instance.GetName(), TBPSVREditorServiceSettings.instance);
            #endif

            selectedServices = GetServices();
        }