06-07-2020, 04:07 AM
(06-01-2020, 11:29 AM)_Aka_ Wrote: What do you mean by unexpected results?
To clarify:
is a shorter way to writeCode:someEvent?.Invoke(someEventArguments)
So what will happen is that all events will be ignored in the first frame of existence of the controller, while the event is null, but will be available again starting from the second frame. Is this matching the unexpected result you mentionned, or is it something else?Code:if(someEvent!= null)
someEvent.Invoke(someEventArguments)
Correct. Above resolves InvokeEventHandler related errors. But I'm still getting errors at Initialize.. should I add ? to it as well?
From this: onInitialized.Invoke(this);
to this: onInitialized?.Invoke(this);