You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
467 B

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