Beispiel #1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Player"))
     {
         other.transform.position = bulletDeathRespawn.transform.position;
         death.OnDeath();
     }
 }
Beispiel #2
0
 private void OnCollisionEnter2D(Collision2D col)
 {
     if (col.transform.CompareTag("Player"))
     {
         col.transform.position = spawnPoint.position;
     }
     death.OnDeath();
 }