void Awake() { if(instance == null) instance = this; else if(instance != this) Destroy(gameObject); CargarTextos(); ElejirIdioma(0); // idioma por defecto es español }
void Awake() { if(instance != null) { if(instance != this) Destroy(gameObject); } else instance = this; DontDestroyOnLoad(this); CargarTextos(); ElejirIdioma(0); // idioma por defecto es español }
void OnEnable() { idioma = (SeleccionarIdioma) FindObjectOfType(typeof(SeleccionarIdioma)); }
void Start() { idioma = (SeleccionarIdioma) FindObjectOfType(typeof(SeleccionarIdioma)); spriteRenderer = GetComponent<SpriteRenderer>(); }
void Start() { idioma = (SeleccionarIdioma) FindObjectOfType(typeof(SeleccionarIdioma)); texto = GetComponent<Text>(); }