Quantcast
Viewing latest article 2
Browse Latest Browse All 31

Answer by sudhir_kotila

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

Viewing latest article 2
Browse Latest Browse All 31

Trending Articles