fix:风机初始化代码提交

This commit is contained in:
zhangjiajia
2026-05-20 17:05:47 +08:00
parent 8510a3dcda
commit 9579356ed1
3752 changed files with 1351544 additions and 1 deletions

View File

@@ -0,0 +1,55 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Enviro
{
public class EventTest : MonoBehaviour
{
void Start()
{
EnviroManager.instance.OnHourPassed += () =>
{
Debug.Log("Hour Passed!");
};
EnviroManager.instance.OnDayPassed += () =>
{
Debug.Log("New Day!");
};
EnviroManager.instance.OnYearPassed += () =>
{
Debug.Log("New Year!");
};
EnviroManager.instance.OnDayTime += () =>
{
Debug.Log("Day!");
};
EnviroManager.instance.OnNightTime += () =>
{
Debug.Log("Night!");
};
EnviroManager.instance.OnSeasonChanged += (EnviroEnvironment.Seasons s) =>
{
Debug.Log("Season changed to: " + s.ToString());
};
EnviroManager.instance.OnWeatherChanged += (EnviroWeatherType w) =>
{
Debug.Log("Weather changed to: " + w.name + " from:" + EnviroManager.instance.Weather.targetWeatherType.name);
};
EnviroManager.instance.OnZoneWeatherChanged += (EnviroWeatherType w, EnviroZone z) =>
{
Debug.Log("Weather changed to: " + w.name.ToString() + " in zone:" + z.name);
};
}
}
}