Exemplo n.º 1
0
        void Start()
        {
            if (SKYMASTER_OBJ != null)
            {
                SUNMASTER = SKYMASTER_OBJ.GetComponent(typeof(SkyMasterManager)) as SkyMasterManager;
            }
            SPEED = SUNMASTER.SPEED;

            SUNMASTER.Seasonal_change_auto = false;

            //VOLUME CLOUDS
            //Sun_rotator = SUN.GetComponent(typeof(Circle_Around_ParticleSKYMASTER)) as Circle_Around_ParticleSKYMASTER;
            //Cam_rotator = Camera.main.gameObject.GetComponent(typeof(Circle_Around_ParticleSKYMASTER)) as Circle_Around_ParticleSKYMASTER;
            //MouseLOOK = Camera.main.gameObject.GetComponent(typeof(MouseLookSKYMASTER)) as MouseLookSKYMASTER;
            Cloud_instance = (GameObject)Instantiate(Clouds_top.gameObject, Clouds_top.transform.position, Quaternion.identity);

            Cloud_instance.SetActive(true);
            Clouds_ORIGIN = Clouds_top.gameObject.GetComponent(typeof(VolumeClouds_SM)) as VolumeClouds_SM;
            //Emitter_ORIGIN =  Clouds_top.gameObject.GetComponent(typeof(ParticleEmitter)) as ParticleEmitter;
            Cloud_instance.SetActive(false);

            Cloud_instance.SetActive(true);

            if (Cloud_instance != null)
            {
                Clouds = Cloud_instance.GetComponent(typeof(VolumeClouds_SM)) as VolumeClouds_SM;
            }
            else
            {
                Debug.Log("AAA");
            }
        }
Exemplo n.º 2
0
        #pragma warning disable 414

        void Start()
        {
            if (SKYMASTER_OBJ != null)
            {
                SUNMASTER = SKYMASTER_OBJ.GetComponent(typeof(SkyMasterManager)) as SkyMasterManager;
            }
            SPEED = SUNMASTER.SPEED;

            SUNMASTER.Seasonal_change_auto = false;
        }
        #pragma warning disable 414

        void Start()
        {
            if (SKYMASTER_OBJ != null)
            {
                SUNMASTER = SKYMASTER_OBJ.GetComponent(typeof(SkyMasterManager)) as SkyMasterManager;
            }
            SPEED = SUNMASTER.SPEED;
            SUNMASTER.Seasonal_change_auto = false;
            TOD = SUNMASTER.Current_Time;

            WaterHeightHandle = SUNMASTER.water.gameObject.GetComponent <WaterHeightSM>();
            WaterHandler      = SUNMASTER.water.gameObject.GetComponent <WaterHandlerSM>();

            Dome_rot = SUNMASTER.Rot_Sun_Y;
        }
Exemplo n.º 4
0
        #pragma warning disable 414

        void Start()
        {
            if (SKYMASTER_OBJ != null)
            {
                SUNMASTER = SKYMASTER_OBJ.GetComponent(typeof(SkyMasterManager)) as SkyMasterManager;
            }
            SPEED = SUNMASTER.SPEED;

            SUNMASTER.Seasonal_change_auto = false;

            GI_controller = SUNMASTER.SUN_LIGHT.GetComponent(typeof(ControlGIPROXY_ATTRIUM_SM)) as ControlGIPROXY_ATTRIUM_SM;

            if (GI_controller != null)
            {
                GI_controller.enabled = false;
            }
        }
Exemplo n.º 5
0
        #pragma warning disable 414

        void Start()
        {
            if (SKYMASTER_OBJ != null)
            {
                SUNMASTER = SKYMASTER_OBJ.GetComponent(typeof(SkyMasterManager)) as SkyMasterManager;
            }
            SPEED = SUNMASTER.SPEED;

            SUNMASTER.Seasonal_change_auto = false;

            //v1.7
            HORIZON    = SUNMASTER.Horizon_adj;
            DuskLightG = SUNMASTER.Dusk_Sun_Color.g;
            DuskLightB = SUNMASTER.Dusk_Sun_Color.b;

            //v1.7
            if (TerrainHandle == null)
            {
                TerrainObj.SetActive(true);
                TerrainHandle = TerrainObj.GetComponentInChildren(typeof(SeasonalTerrainSKYMASTER)) as SeasonalTerrainSKYMASTER;
                TerrainObj.SetActive(false);
            }
            if (MeshTerrainHandle == null)
            {
                MeshTerrainObj.SetActive(true);
                MeshTerrainHandle = MeshTerrainObj.GetComponentInChildren(typeof(SeasonalTerrainSKYMASTER)) as SeasonalTerrainSKYMASTER;
            }

            TOD = SUNMASTER.Current_Time;

            GI_controller = SUNMASTER.SUN_LIGHT.GetComponent(typeof(ControlGIPROXY_ATTRIUM_SM)) as ControlGIPROXY_ATTRIUM_SM;
            Gi_proxy      = SUNMASTER.SUN_LIGHT.GetComponent(typeof(LightCollisionsPDM)) as LightCollisionsPDM;

            if (GI_controller != null)
            {
                GI_controller.enabled = false;
            }
        }