/// <summary> /// Creates the event receiver instances from the Events list /// </summary> protected virtual void SetupEvents() { InteractableEvent.EventLists lists = InteractableEvent.GetEventTypes(); for (int i = 0; i < Events.Count; i++) { Events[i].Receiver = InteractableEvent.GetReceiver(Events[i], lists); Events[i].Receiver.Host = this; //Events[i].Settings = InteractableEvent.GetSettings(Events[i].Receiver); // apply settings } }
protected void SetupEventOptions() { InteractableEvent.EventLists lists = InteractableEvent.GetEventTypes(); eventTypes = lists.EventTypes.ToArray(); eventOptions = lists.EventNames.ToArray(); }