Quantcast
Channel: Answers by "ransomink"
Viewing all articles
Browse latest Browse all 80

Answer by ransomink

$
0
0
Is this in the bullet script? Make sure both the player and bullet have the Player tag. Also, use CompareTag() instead... void OnTriggerEnter2D( Collider2D other ) { // Not the player? if ( !other.CompareTag( "Player" ) ) { // Get rid of this game object Destroy( gameObject, 0.01f ); } }

Viewing all articles
Browse latest Browse all 80

Trending Articles



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