DayNightCycleManager.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    void Start()
    {
        // In unity, lights are set at 6 o'clock.
        // Following the dayTime specified, we update them.
        transform.Rotate(0, 0, hoursToDegrees(dayTime-6));

        sun = transform.FindChild("Sun").GetComponent<Light>();
        sunMaxIntensity = sun.intensity;
    }