.
This commit is contained in:
parent
ca5bbd6f29
commit
5722e3fa46
@ -87,4 +87,12 @@ public class MonsterController : MonoBehaviour
|
||||
yield return new WaitForSeconds(0.3f);
|
||||
}
|
||||
}
|
||||
|
||||
void OnCollisionEnter(Collision coll)
|
||||
{
|
||||
if (coll.collider.CompareTag("BULLET"))
|
||||
{
|
||||
Destroy(coll.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user