Initial commit

This commit is contained in:
2026-03-17 18:10:00 +02:00
commit bc30c054ea
1911 changed files with 3034729 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DSTManager : MonoBehaviour
{
public GameObject globeObject;
private float _timer;
private const float INTERVAL = 3600f;
void Start()
{
RefreshAll();
_timer = INTERVAL;
}
void Update()
{
_timer -= Time.deltaTime;
if (_timer <= 0f)
{
RefreshAll();
_timer = INTERVAL;
}
}
void RefreshAll()
{
if (globeObject == null) return;
foreach (Transform child in globeObject.transform)
{
if (child.gameObject.name == "Ocean") continue;
CountryData cd = child.GetComponent<CountryData>();
if (cd != null) cd.RefreshDST();
}
}
}