the initial commit to the repo.
This commit is contained in:
parent
025c032b8c
commit
1b757591b9
264 changed files with 21882 additions and 0 deletions
38
stoopid.raw/stupid.solutions.Features/EZWeatherController.cs
Normal file
38
stoopid.raw/stupid.solutions.Features/EZWeatherController.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
using EFT.UI;
|
||||
using EFT.Weather;
|
||||
using UnityEngine;
|
||||
|
||||
namespace stupid.solutions.Features;
|
||||
|
||||
public class EZWeatherController : MonoBehaviour
|
||||
{
|
||||
public static WeatherController _weatherController;
|
||||
|
||||
private static ToDController _toDController;
|
||||
|
||||
private void Update()
|
||||
{
|
||||
}
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
_weatherController = WeatherController.Instance;
|
||||
_toDController = _weatherController?.TimeOfDayController;
|
||||
if (_weatherController == null)
|
||||
{
|
||||
ConsoleScreen.LogError("WeatherController not found!");
|
||||
}
|
||||
if (_toDController == null)
|
||||
{
|
||||
ConsoleScreen.LogError("TimeOfDayController not found!");
|
||||
}
|
||||
}
|
||||
|
||||
public static void EnsureInitialized()
|
||||
{
|
||||
if (_weatherController == null || _toDController == null)
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue