Quantcast
Channel: Answers by "sudhir_kotila"
Viewing all articles
Browse latest Browse all 31

Answer by sudhir_kotila

$
0
0
public class PlayerCollision : MonoBehaviour { void OnCollisionEnter2D (Collider2D coll) { if(coll.gameObject.tag == "Player") { Destroy(gameObject); } } } Try this. It's work defiantly..

Viewing all articles
Browse latest Browse all 31

Trending Articles



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