private void OnTriggerEnter(Collider other) { pl = other.GetComponent <Vida>(); if (pl != null) { //pl.spawnPoint = gameObject.transform; save.CheckPoint(); } }
private void OnTriggerEnter(Collider other) { pl = other.GetComponent <Vida>(); if (pl != null) { pl.spawnPoint = spawnPoint; save.CheckPoint(spawnPoint.position); } }