2using System.Collections.Generic;
11 public List<ZoneEvent>
list =
new List<ZoneEvent>();
14 public List<ZonePreEnterEvent>
listPreEnter =
new List<ZonePreEnterEvent>();
27 Add(Activator.CreateInstance<T>(), allowDuplicate);
40 if (e.GetType() ==
item.GetType())
49 Debug.Log(
"#game zone event " + e.GetType()?.ToString() +
" added.");
78 for (
int num =
list.Count - 1; num >= 0; num--)
97 public void Tick(
float delta)
129 item.OnSimulateHour();
void Add< T >(bool allowDuplicate=false)
List< ZonePreEnterEvent > listPreEnter
void Add(ZoneEvent e, bool allowDuplicate=false)
void AddPreEnter(ZonePreEnterEvent e, bool executeIfActiveZone=true)