Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/TimeVariables.cs
2026-02-21 16:45:37 +08:00

40 lines
923 B
C#

using System;
using UnityEngine;
[Serializable]
public class TimeVariables
{
[Tooltip("Wether time should pass. Disable to stop time.")]
[Header("Date and Time")]
public bool ProgressTime = true;
[Tooltip("Current Time: hour")]
public float Hours = 12f;
[Tooltip("Current Time: Days")]
public float Days = 1f;
[Tooltip("Current Time: Years")]
public float Years = 1f;
[Tooltip("How long a day needs in real minutes.")]
public float DayLengthInMinutes = 30f;
[Tooltip("Time when OnNightEvent and Audio will be played.")]
[Range(0f, 24f)]
public float NightTimeInHours = 18f;
[Tooltip("Time when OnDayEvent and Audio will be played.")]
[Range(0f, 24f)]
public float MorningTimeInHours = 5f;
[Tooltip("-90, 90 Horizontal earth lines")]
[Range(-90f, 90f)]
[Header("Location")]
public float Latitude;
[Tooltip("-180, 180 Vertical earth line")]
[Range(-180f, 180f)]
public float Longitude;
}