using ET.EventType; namespace ET { public class GameTime_UpdateLight : AEvent { protected override void Run(GameTime args) { var peachValleyComp = args.Unit.ZoneScene().CurrentScene().GetComponent(); if (peachValleyComp == null) { return; } peachValleyComp.UpdateLightByTime(args.Hour, args.Minute); } } }