properly destroy messages

This commit is contained in:
in0finite 2020-06-06 18:41:50 +02:00
parent 1016a18c80
commit cf0437e80a

View file

@ -36,7 +36,7 @@ namespace SanAndreasUnity.Utilities
msg.ScreenPos += msg.velocity * Time.deltaTime;
if (msg.timeLeft <= 0)
{
Object.Destroy(msg);
Object.Destroy(msg.gameObject);
}
}