This one got me confused. Why is only the 3rd part of the IF statement being executed ?
void OnTriggerEnter (Collider other)
{
if (other.tag == "Shot")
{
Destroy(other.gameObject);
Instantiate(invaderExplosion, transform.position, transform.rotation);
Destroy(gameObject);
}
It obviously recognises the projectile(Shot) otherwise the trigger wouldn’t destroy the object as in part 3 of the IF statement. So why then does it not destroy the ‘Shot’ or play/instantiate my effect.
???