public static bool PostEvent(GameSound eventType, GameObject parentGameObject, InitialiseParameters initialiseParameters) { if (EventManager.Instance) { return(EventManager.Instance.PostEvent(GetEventString(eventType), parentGameObject, initialiseParameters)); } return(false); }
public void Reset() { _eventName = ""; EventAction = EventAction.PlaySound; eventStatus = EventStatus.Not_Handled; parentGameObject = null; _parameter = null; _delay = 0f; _delayTimer = 0f; _initialiseParameters = null; _onEventNotify = null; _eventCategory = null; _priority = 0; }
public void Copy(Fabric.Event fromEvent) { _eventName = fromEvent._eventName; EventAction = fromEvent.EventAction; eventStatus = fromEvent.eventStatus; parentGameObject = fromEvent.parentGameObject; _parameter = fromEvent._parameter; _delay = fromEvent._delay; _delayTimer = fromEvent._delayTimer; _initialiseParameters = fromEvent._initialiseParameters; _onEventNotify = fromEvent._onEventNotify; _eventCategory = fromEvent._eventCategory; _priority = fromEvent._priority; }