destroyState

abstract fun destroyState()

Mark state as unused and clean up in Java and in native. This should be called as early as possible when you know a StateWrapper will no longer be used. If there's ANY chance of it being used legitimately, don't destroy it! It is expected that all StateWrappers are destroyed immediately upon stopSurface.