Quantcast
Channel: Answers by "Paparakas"
Viewing all articles
Browse latest Browse all 27

Answer by Paparakas

$
0
0
If you preffered to not use triggers , you could also do: void OnColliderHit(Collider other) { if(other.gameObject.tag == "Target") { Destroy(other.gameObject); } } If you wanted to make the projectile hit everything it collides with, you'd do void OnColliderHit(Collider other) { Destroy(other.gameObject); } instead.

Viewing all articles
Browse latest Browse all 27

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>