using UnityEngine; namespace AibisDream { public abstract class AbsScenePart : MonoBehaviour { protected TimesOfDay curTime; protected Weather curWeather; public abstract void Init(TimesOfDay time, Weather weather = Weather.Sunny); public abstract void OnTimeChange(TimesOfDay time); public abstract void OnWeatherChange(Weather weather); } public enum TimesOfDay { Day, Evening, Night } public enum Weather { Sunny, Rainy, Snowy } }