I’m wanting to make it an object that is moved, changes its sprite then disappears.
the package moves, is crushed, but then the car is deleted instead.
What am I doing wrong?
void OnCollisionEnter2D(Collision2D other)
{
if(gameObject.tag=="SpeedBump")
{
Debug.Log("Splat!");
isAlive = false;
ChangeSprite();
Destroy(other.gameObject, 3f);
}
}