public void InsertBlock(int index, Block eventAction, EventActionData.EventType eventType = EventActionData.EventType.Event) { eventList.Insert(index, new EventActionData(eventAction, eventType)); }
/// <summary> /// Create new EventData with one event /// </summary> /// <param name="block"></param> /// <param name="type"></param> public EventData(Block block, EventActionData.EventType type) { eventList.Add(new EventActionData(block, type)); }
public int editIndex; //for editor public void AddBlock(Block eventAction, EventActionData.EventType eventType = EventActionData.EventType.Event) { eventList.Add(new EventActionData(eventAction, eventType)); }