.
This commit is contained in:
parent
a4dc49242d
commit
4f1d32881f
@ -6,7 +6,9 @@ public class RemoveBullet : MonoBehaviour
|
||||
{
|
||||
void OnCollisionEnter(Collision coll)
|
||||
{
|
||||
if (coll.collider.tag == "BULLET")
|
||||
// Garbage Collection
|
||||
// if (coll.collider.tag == "BULLET")
|
||||
if (coll.collider.CompareTag("BULLET"))
|
||||
{
|
||||
Destroy(coll.gameObject);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user