Class WeatherManager
- Namespace
- VoxelPlayground.Gaming
- Assembly
- GamePlay.dll
public class WeatherManager : Singleton<WeatherManager>
- Inheritance
-
object
WeatherManager
- Inherited Members
-
- Extension Methods
-
Fields
autoUpdate
[Tooltip("Automatically update time of day")]
public bool autoUpdate
Field Value
- bool
currentDay
Field Value
- int
currentTime
[Header("Time of Day Settings")]
[Range(0, 24)]
[Tooltip("Current time in 24-hour format")]
public float currentTime
Field Value
- float
latitude
[Range(0, 90)]
[Tooltip("Latitude in degrees (0 = equator, 90 = pole)")]
public float latitude
Field Value
- float
renderingSettings
[Tooltip("Scene rendering settings")]
public SceneRenderingSettings renderingSettings
Field Value
- SceneRenderingSettings
sunLight
[Header("References")]
[Tooltip("Main directional light (sun/moon)")]
public Light sunLight
Field Value
- Light
sunriseTime
Field Value
- float
sunsetTime
Field Value
- float
timeSpeed
[ShowIf("autoUpdate", true)]
[Tooltip("Time progression speed (hours per real second)")]
public float timeSpeed
Field Value
- float
Properties
InternalCurrentTime
public float InternalCurrentTime { get; }
Property Value
- float
Methods
Awake()
protected override void Awake()
GetNormalizedTime()
public float GetNormalizedTime()
Returns
- float
Initialize()
IsInDay()
Returns
- bool
SetDawn()
[Button("Set Dawn")]
public void SetDawn()
SetDayLength(float)
[Button]
public void SetDayLength(float realSeconds)
Parameters
realSeconds float
SetDusk()
[Button("Set Dusk")]
public void SetDusk()
SetMidnight()
[Button("Set Midnight")]
public void SetMidnight()
SetNoon()
[Button("Set Noon")]
public void SetNoon()
SetTime(float)
[Button("Set Time")]
public void SetTime(float timeOfDay)
Parameters
timeOfDay float