I’m trying to create different gameScenes in my game, but there are similar parts like exit from the gameScene, so the solution should be inheritance, unfortunately, I don’t know how, this is what I achieved, but I think it’s not the correct way (however it works). So: