void Awake()
 {
     invRef         = FindObjectOfType <Inventory>();
     dayRef         = FindObjectOfType <DayNightCycle>();
     player         = FindObjectOfType <PlayerController>();
     uiText[4].text = "DAYS: " + dayRef.GetDaysPassed().ToString();
     uiText[5].text = "0" + dayRef.GetHour() + "0" + dayRef.GetMinute().ToString();
 }
    void CheckClock()
    {
        if (dayRef.GetMeridiem() == DayNightCycle.Meridiem.AM)
        {
            if (dayRef.GetHour() < 10f && dayRef.GetMinute() <= 10f)
            {
                uiText[5].text = "0" + Mathf.Abs(dayRef.GetHour()).ToString() + " : " + "0" + Mathf.Abs(dayRef.GetMinute()).ToString() + " AM";
            }

            if (dayRef.GetHour() < 10f && dayRef.GetMinute() >= 10f)
            {
                uiText[5].text = "0" + Mathf.Abs(dayRef.GetHour()).ToString() + " : " + Mathf.Abs(dayRef.GetMinute()).ToString() + " AM";
            }

            if (dayRef.GetHour() >= 10f && dayRef.GetMinute() >= 10f)
            {
                uiText[5].text = Mathf.Abs(dayRef.GetHour()) + " : " + Mathf.Abs(dayRef.GetMinute()).ToString() + " AM";
            }
        }

        if (dayRef.GetMeridiem() == DayNightCycle.Meridiem.PM)
        {
            if (dayRef.GetHour() < 10f && dayRef.GetMinute() <= 10f)
            {
                uiText[5].text = "0" + Mathf.Abs(dayRef.GetHour()).ToString() + " : " + "0" + Mathf.Abs(dayRef.GetMinute()).ToString() + " PM";
            }

            if (dayRef.GetHour() < 10f && dayRef.GetMinute() >= 10f)
            {
                uiText[5].text = "0" + Mathf.Abs(dayRef.GetHour()).ToString() + " : " + Mathf.Abs(dayRef.GetMinute()).ToString() + " PM";
            }

            if (dayRef.GetHour() >= 10f && dayRef.GetMinute() >= 10f)
            {
                uiText[5].text = Mathf.Abs(dayRef.GetHour()).ToString() + " : " + Mathf.Abs(dayRef.GetMinute()).ToString() + " PM";
            }
        }
    }