// Start is called before the first frame update void Start() { elNombre = GameObject.Find("ContenedorVariables").GetComponent <SelectorPersonaje>(); //ya se que elNombre no dice absolutamente nada, pero hace referencia a que es el selector de personajes y no queria repetirlo SelectorUno(); SelectorDos(); SelectorTres(); SelectorCuatro(); }
// Start is called before the first frame update void Start()// intente hacerlo todo con un solo seleccionador y saltaron 50 problemas, por lo que hice unga unga y puse tres seleccionadores que cambian dependiendo de la escena. { elNombre = GameObject.Find("ContenedorVariables").GetComponent <SelectorPersonaje>(); SelectorUno(); SelectorDos(); SelectorTres(); SelectorCuatro(); }
// Start is called before the first frame update void Start() //lo mismo que antes pero para la escena 3 { elNombre = GameObject.Find("ContenedorVariables").GetComponent <SelectorPersonaje>(); SelectorUno(); SelectorDos(); SelectorTres(); SelectorCuatro(); }
void Awake() { // singleton if (selectorPersonaje == null) { selectorPersonaje = this; DontDestroyOnLoad(dontDestroy); } else { Destroy(this.gameObject); } }
// Start is called before the first frame update void Start() { cambiarTexto = GameObject.Find("ContenedorVariables").GetComponent <SelectorPersonaje>(); //como cada personaje va a decir su frase, necesito saber que eligio el jugador antes if (cambiarTexto.seleccionoUno == true) { OracionesParaBarb(); } if (cambiarTexto.seleccionoDos == true) { OracionesParaToscal(); } if (cambiarTexto.seleccionoTres == true) { OracionesParaValena(); } if (cambiarTexto.seleccionoCuatro == true) { OracionesParaCruzado(); } }