// Start is called before the first frame update void Start() { //Guardamos referencia al script para poder hacer spawn cuando se necesite manageObjetives = GetComponent <ManageObjetives>(); startEvent = GetComponent <ClickToStart>(); //Calculamos la racha máxima maxKills = testDuration * maxKPS; //Calculamos la puntuación máxima }
// Start is called before the first frame update void Start() { //Guardamos referencia al script para poder hacer spawn cuando se necesite manageObjetives = GetComponent <ManageObjetives>(); startEvent = GetComponent <ClickToStart>(); //Se crea el primer objetivo y se desactiva para usarlo luego actualObjetive = manageObjetives.Spawn(); actualObjetive.SetActive(false); }