예제 #1
0
	static void OpenGeovoxIntegrationWindow(){
		Resolution res = Screen.currentResolution;
		
		UpdateCurrentSourceDirectory();
		
		if ( window == null ){
			window = ScriptableObject.CreateInstance<AGF_IntegrationWindow>();
			window.ShowUtility();
			
			window.position = new Rect( res.width * 0.25f, res.height * 0.25f, 500.0f, 200 );
			window.title = "Geovox Scene Loader";
			window.maxSize = new Vector2( window.position.width, window.position.height );
			window.minSize = new Vector2( window.position.width, window.position.height );
			window.integrationType = IntegrationType.Geovox;
			
			m_CurrentWindowState = WindowState.ModeSelect;
			
		} else {
			window.Focus();
		}

		lightShadows = (LightShadows)PlayerPrefs.GetInt (Main.gameName + "ShadowType", 2);
		terrainShadows = PlayerPrefs.GetInt (Main.gameName + "TerrainShadowType", 1) == 1;
		grassShadows = PlayerPrefs.GetInt (Main.gameName + "GrassShadowType", 1) == 1;
		prefabShadows = PlayerPrefs.GetInt (Main.gameName + "PrefabShadowType", 1) == 1;
		terrainSpecular = PlayerPrefs.GetInt (Main.gameName + "TerrainSpecular", 1) == 1;
		
		prevRunInBackground = Application.runInBackground;
		Application.runInBackground = true;
	}
    static void OpenAGFIntegrationWindow()
    {
        Resolution res = Screen.currentResolution;

        UpdateCurrentSourceDirectory();

        if ( window == null ){
            window = ScriptableObject.CreateInstance<AGF_IntegrationWindow>();
            window.ShowUtility();

            window.position = new Rect( res.width * 0.25f, res.height * 0.25f, 500.0f, 325.0f );
            window.title = "AGF Scene Loader";
            window.maxSize = new Vector2( window.position.width, window.position.height );
            window.minSize = new Vector2( window.position.width, window.position.height );

            m_CurrentWindowState = WindowState.ModeSelect;

        } else {
            window.Focus();
        }

        prevRunInBackground = Application.runInBackground;
        Application.runInBackground = true;
    }