Created
July 8, 2015 02:51
-
-
Save FEDE0D/5628b6572e2510f3fe6a to your computer and use it in GitHub Desktop.
Globals idiomas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#===========Escena1.scn================ | |
func _ready(): | |
Globals.set("idioma", -1) # no es necesario hacer esto | |
func btn_1_click(): | |
Globals.set("idioma", 1) | |
func btn_2_click(): | |
Globals.set("idioma", 2) | |
#===========Escena2.scn================ | |
func _ready(): | |
var idioma = Globals.get("idioma") | |
if idioma == 1: | |
# cargar idioma 1 | |
elif idioma == 2: | |
# cargar idioma 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment