Hi! I want to add bullets for the enemies to shoot back and I’m running into the following issue. This is in my player collision handler script:
void OnTriggerEnter(Collider other)
{
StartDeathSequence();
}
void OnParticleCollision(GameObject @object)
{
StartDeathSequence();
}
In order to get the hit to register, I have to turn off Is Trigger on my ship’s collider, because Particle Systems apparently don’t recognise Trigger Colliders. The issue is that Unity doesn’t seem to differentiate between particle collisions here; although the enemy bullets destroy the player object and vice versa, my player ship’s bullets hitting the enemy now register as a hit on my player ship, destroying it. In other words, shooting enemies causes my ship to take damage.
Is there a means of differentiating here or is this just a limitation of the method used to make bullets for Argon Assault?