mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-15 00:37:09 +00:00
properly destroy messages
This commit is contained in:
parent
1016a18c80
commit
cf0437e80a
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ namespace SanAndreasUnity.Utilities
|
|||
msg.ScreenPos += msg.velocity * Time.deltaTime;
|
||||
if (msg.timeLeft <= 0)
|
||||
{
|
||||
Object.Destroy(msg);
|
||||
Object.Destroy(msg.gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue