1) I created a Gameobject that has a particle effect. 2) I have a despawn script on the GameObject. 3) my enemy spawns the GameObject as a projectile. 4) All works as expected. 5) My player has a collision script. 6) the projectile hits the player and the player collision script calls a despawn function in the gameobject. 7) the gameobject does not despawn. 8) the function is called as I print it to console. 9) if I place my despawn code in the gameobject update function as a test it despawns fine. 10) I use :PoolBoss.Despawn(this.GetComponent<Transform>());
So, the question is why does this do this ? As said the function on the gameobject is called from the player collision script and I can see it being called via print statement. But the despawn does not work, this is driving me nuts !