Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/EventTest.cs
2026-02-21 16:45:37 +08:00

44 lines
812 B
C#

using UnityEngine;
public class EventTest : MonoBehaviour
{
private void Start()
{
EnviroSky.instance.OnWeatherChanged += delegate(EnviroWeatherPrefab type)
{
Debug.Log("Weather changed to: " + type.Name);
};
EnviroSky.instance.OnSeasonChanged += delegate
{
Debug.Log("Season changed");
};
EnviroSky.instance.OnHourPassed += delegate
{
Debug.Log("Hour Passed!");
};
EnviroSky.instance.OnDayPassed += delegate
{
Debug.Log("New Day!");
};
EnviroSky.instance.OnYearPassed += delegate
{
Debug.Log("New Year!");
};
}
public void TestEventsWWeather()
{
MonoBehaviour.print("Weather Changed though interface!");
}
public void TestEventsNight()
{
MonoBehaviour.print("Night now!!");
}
public void TestEventsDay()
{
MonoBehaviour.print("Day now!!");
}
}