If we go from layout A to B, the Release() method of C3.SDKBehaviorInstanceBase of the objects of A get executed way after the start of layout B.
I expect Release() to execute as soon as the correspondent object is destroyed and before we go to B.
I need to do some clean up in Release() but they get executed too late, and they mess up stuff that was done after B start.
Is there an alternative to Release() that get executed right after the object is destroyed ?
I don't want to use this.runtime.Dispatcher().addEventListener("instancedestroy", function)
Thanks.