public override void Act(StateController controller)
        {
            EventObject eventObject = controller.GetEventObjectByName(eventObjectName);

            if (!eventObject)
            {
                Debug.LogWarningFormat("Event object with name {0} was not registered", eventObjectName);
            }
            else
            {
                eventObject.RunEventScript();
            }
        }
        public override void Act(StateController controller)
        {
            EventObject trapTrigger = controller.GetEventObjectByName(trapTriggerName);

            if (!trapTrigger)
            {
                Debug.LogWarningFormat("Narrow bridge trigger with name {0} was not registered", trapTriggerName);
            }
            else
            {
                trapTrigger.RunEventScript();
            }
        }