• Blog
  • Recipes
  • Set Menus
  • Contact
Game-Recip.es
for hobbyist game developers

Variables

  • Recipes

DontDestroy object to keep variables

Posted on 25 March 201825 March 2018by Spatula

How to keep some variables loaded when you change scenes or restart scenes ? You can of course save it local on disk, but there’s more simple solution if it’s just some variables that don’t need to be kept forever (as player current health, that you need to keep when starting a new level) You […]

Read More
No comments yet
  • Recipes

Share needed variables by all gameObjects with a manager class

Posted on 4 November 201710 December 2017by Spatula

estimated time : 7 mn ingredients needed : Unity , 1 GameObject containing the gameController script, 1 or more GameObjects that need to access values. You want to have some variables that can be accessible between some gameObjects quickly? Let’s say we want the speed bonus contained in one object collected by a player to affect the […]

Read More
No comments yet

About

This site is for hobbyist game developers wishing to speed up their projects.


in order to get exclusive contents.

List of recipes

  • Recipes

Set Menus

Game Projects
Activello Theme by Colorlib Powered by WordPress