Esempio n. 1
0
        internal static void Apply(EditorFacility editor)
        {
            Debug.Log("EditorView.Apply", "editor = " + editor);

            // SkyBox
            EditorSky.Apply(editor);
            EditorFlares.Apply(editor);
            EditorColliders.Apply(editor);

            // Terrain
            AmbientSettings.Apply(editor);
            EditorTerrain.Apply(editor);
            EditorLight.Apply(editor);
            EditorShadows.Apply(editor);
            EditorBuildings.Apply(editor);
        }
Esempio n. 2
0
        internal static void Update()
        {
            Debug.Log("EditorView.Update");

            Transform ksc = SpaceCenter.Instance.SpaceCenterTransform;

            VABrot = Quaternion.LookRotation(ksc.right, ksc.up);
            SPHrot = Quaternion.LookRotation(Quaternion.AngleAxis(-30, ksc.up) * ksc.right, ksc.up);

            // SkyBox
            EditorSky.Update();
            EditorFlares.Update();

            // Terrain
            EditorBuildings.Update();
            EditorShadows.Update();
        }
Esempio n. 3
0
        internal static void Apply(EditorFacility editor)
        {
            Debug.Log("EditorView.Apply", "editor = " + editor);

            // SkyBox
            EditorSky.Apply(editor);
            EditorFlares.Apply(editor);
            EditorColliders.Apply(editor);

            // UI
            EditorButtons.Apply(editor);

            // Terrain
            AmbientSettings.Apply(editor);
            EditorTerrain.Apply(editor);
            EditorLight.Apply(editor);
            EditorDoors.Apply(editor);
            EditorShadows.Apply(editor);
            EditorBuildings.Apply(editor);

            // Scatterer Compatibility
            EditorCamera.Instance.cam.gameObject.AddOrGetComponent <EditorCameraTracker>();
        }