Exemple #1
0
        //-----------------------------------------------------------------------------------------


        void Update()
        {
            if (!CheckComponents())
            {
                m_Transform  = this.transform;
                m_SkyManager = GetComponent <LSky>();
                return;
            }

            ProgressTime(useSystemTime);

            m_SkyManager.SunLightTransform.localRotation  = SunRotation;
            m_SkyManager.MoonLightTransform.localRotation = autoRotateMoon ? MoonRotationOpposiveSun : MoonRotation;
            m_Transform.localEulerAngles = new Vector3(0.0f, orientation, 0.0f);
        }
Exemple #2
0
        //-----------------------------------------------------------------------------------------


        void Update()
        {
            if (!CheckComponents())
            {
                m_Transform  = this.transform;
                m_SkyManager = GetComponent <LSky>();
                return;
            }

            ProgressTime();

            m_SkyManager.SetSunLightLocalRotation(SunRotation);
            m_SkyManager.SetMoonLightLocalRotation(MoonRotation);

            m_Transform.localEulerAngles = new Vector3(0.0f, orientation, 0.0f);
        }