Hi,
I’m using the DanmakU Package from GitHub - james7132/DanmakU: An open source Danmaku development kit for Unity3D. .
It’s pretty good, but I have no idea how to set up collision.
I added a User Layer called Bullet and have this attached to the player
void OnCollisionEnter2D(Collision2D col)
{
if (col.gameObject.layer == 12)
{
Debug.Log("I'VE BEEN HIT UGHHH");
}
}
… but it’s not working.
I attached an img of the Physics layers.
Is there maybe a problem with the way I set up the Physics Layers Collision?
I think the emitter is spawning Danmaku Prefabs so I attacked a Circle Collider but nothing’s happening.
Any help greatly appreciated! Thank you.


