Exemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         respawn.StartCoroutine(respawn.RespawnTimer(other.gameObject));
         other.gameObject.SetActive(false);
     }
 }