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(); }
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); } } }
void setDifficulty() { gameManager.StartGame(difficulty); }