add codes

This commit is contained in:
XuGaoFeng
2026-08-25 15:15:42 +08:00
parent 175f8e9336
commit c217787c5c
960 changed files with 513067 additions and 505 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);
};
}
}
}