[HitBullet.js]
function OnCollisionEnter(coll : Collision){
if(coll.gameObject.tag == "BULLET"){
Destroy(coll.gameObject);
}
}
출처 - http://www.unity3dstudy.com/
[HitBullet.js]
function OnCollisionEnter(coll : Collision){
if(coll.gameObject.tag == "BULLET"){
Destroy(coll.gameObject);
}
}
출처 - http://www.unity3dstudy.com/