XDracam / unity-corelibrary

Collection of classes and extension methods that make life with Unity3D more comfortable
MIT License
15 stars 3 forks source link

Queryable.OnDestory may throw NullReferenceException #19

Closed Eregerog closed 5 years ago

Eregerog commented 5 years ago

When Start is not called, because the script has been deactivated before Start was called. Therefore Underlying is null. A simple null check should do the trick