Exemplo n.º 1
0
 public void IniciarJuego()
 {
     anim.SetTrigger("Start");
     scr_gamemanager.player.GetComponent <SCR_shieldrotation>().enabled = true;
     StartCoroutine(fadeoutsilla(0.5f));
     StartCoroutine(LerpToPos(target, 1.0f));
     scr_gamemanager.StartGame();
 }
Exemplo n.º 2
0
    private void OnCollisionEnter(Collision collision)
    {
        if (collision.gameObject.tag == "Flecha")
        {
            anim.SetBool("DieNow", true);
            scr_gamemanager.restartCanvas.SetActive(true);
            scr_gamemanager.StartGame();
            stop.enabled = false;


            flechas = GameObject.FindGameObjectsWithTag("Flecha");
            for (int i = 0; i < flechas.Length; i++)
            {
                flechas[i].SetActive(false);
            }
        }
    }
Exemplo n.º 3
0
 void setDifficulty()
 {
     gameManager.StartGame(difficulty);
 }