Beispiel #1
0
 // 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
 }
Beispiel #2
0
    // 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);
    }