Eventboard

Namespace

using FlowReactor.EventSystem;

CallEventByName

public void CallEventByName(string eventName)

Call an event on the referenced Eventboard. Make sure event names are unique.

Example

using FlowReactor;
using FlowReactor.EventSystem;
 
// reference to eventboard
public EventBoard events;
 
// call the OnEvent1 event in the assigned eventboard
events.CallEventByName("OnEvent1");

Listen to events

Use the FlowReactorEventListener component to listen to events. With this component you can easily call public methods on your own custom scripts.

Last updated