void OnTriggerEnter(Collider col) { Debug.Log("Something collided: " + col.gameObject.name); if (col.gameObject.name == "Dagda") { playerStats.dead(); //Muere el jugador } col.gameObject.SetActive(false); }
void OnTriggerEnter(Collider col) { Debug.Log("Something collided: " + col.gameObject.name); if (col.gameObject.name == "Dagda") { playerStats.dead(); //Muere el jugador } col.gameObject.SetActive(false); }