Example #1
0
    // Set the game time to the specified total second
    public void SetGameTime(float seconds)
    {
        dayTimeInGame = seconds;

        Sunlight sunScript = sun.GetComponent <Sunlight> ();

        sunScript.SetSunToTimeOfDay(GetDayTimeInHours());
    }