I am developing a game where objects move in the screen. My object is instantiated in Y = 0 and I want to destroy this object when it goes under the screen Height. So if (positionY >= ScreenHeight) I have to destroy this object to clean my game and prevent "lag".
How to do this? I have a dispose method (this.dispose) but it cause the dispose of the app and I want destroy only the object.
Thanks in advance