Jump to content

Swaping between scenes without repeting code


NUGA
 Share

Recommended Posts

When designing a game, at some point we will have to switch to another scene (level, main menu whatever). A way to do this is every level, for example, will be a scene. When the time to change scenes comes, just change them. However some code, at least the way i'm doing, reapeats: input handler in the update, score texts, etc. So i wonder if there is a better way of structuring the code in way that this won't happen? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...