void Start() { //Grabs EventHub reference objEventHub = GetComponent <IEventHubReference>()?.GetEventHub(); objEventHub?.RegisterListener <OnSomethingHappened>(OnSomethingHappened); }
void Start() { //Grabs EventHub reference objEventHub = GetComponent <IEventHubReference>()?.GetEventHub(); objEventHub?.RegisterListener <OnSomethingHappened>(OnSomethingHappened); }