<commit_before>﻿using System;
using UnityEngine;
using UnityEngine.UI;

public class ClockManager : MonoBehaviour
{
    public float currentGameTime;
    private long maxGameTime;
    public int minutesPerSecond;
    [Range(1, 7)]
    public int totalGameDays;
    public bool use24hour;
    public enum DayOfWeek
    {
        Saturday,
        Sunday,
        Monday,
        Tuesday,
        Wednesday,
        Thursday,
        Friday
    }

    public Text dayText;
    public Text hourText;
    private bool isFinished;

    void Awake()
    {
        if (PlayerPrefs.GetFloat(Constants.Prefs.GAME_TIME) == 0)
        {
            currentGameTime = ((int)DayOfWeek.Friday - totalGameDays + 1) * 24 * 60 * 60;
            currentGameTime += 8 * 60 * 60; // 8am @ starting day;
        }
        else {
            currentGameTime = PlayerPrefs.GetFloat(Constants.Prefs.GAME_TIME);
        }

        maxGameTime = (long)(DayOfWeek.Friday + 1) * 24 * 60 * 60 - 1; // 11:59pm @ Friday
    }

    void Update()
    {
        currentGameTime += Time.deltaTime * minutesPerSecond * 60;<commit_msg>Fixed clock type when starting a game<commit_after>﻿using System;
using UnityEngine;
using UnityEngine.UI;

public class ClockManager : MonoBehaviour
{
    public float currentGameTime;
    private long maxGameTime;
    public int minutesPerSecond;
    [Range(1, 7)]
    public int totalGameDays;
    public bool use24hour;
    public enum DayOfWeek
    {
        Saturday,
        Sunday,
        Monday,
        Tuesday,
        Wednesday,
        Thursday,
        Friday
    }

    public Text dayText;
    public Text hourText;
    private bool isFinished;

    void Awake()
    {
        if (PlayerPrefs.GetFloat(Constants.Prefs.GAME_TIME) == 0)
        {
            currentGameTime = ((int)DayOfWeek.Friday - totalGameDays + 1) * 24 * 60 * 60;
            currentGameTime += 8 * 60 * 60; // 8am @ starting day;
        }
        else {
            currentGameTime = PlayerPrefs.GetFloat(Constants.Prefs.GAME_TIME);
        }

        use24hour = (PlayerPrefs.GetInt(Constants.Prefs.USE_24_HOUR_CLOCK, Constants.Prefs.Defaults.USE_24_HOUR_CLOCK)  == 1);

        maxGameTime = (long)(DayOfWeek.Friday + 1) * 24 * 60 * 60 - 1; // 11:59pm @ Friday
    }

    void Update()
    {
        currentGameTime += Time.deltaTime * minutesPerSecond * 60;
{'fraction_non_alphanumeric': 0.0924190800681431, 'fraction_numerical': 0.030238500851788756, 'mean_word_length': 2.1872455902306647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5806064', 'n_tokens_mistral': 786, 'n_tokens_neox': 702, 'n_words': 175}