diff --git a/Assets/Scripts/Utilities/UI/OnScreenMessageManager.cs b/Assets/Scripts/Utilities/UI/OnScreenMessageManager.cs index 565c7b8a..3f3c2d14 100644 --- a/Assets/Scripts/Utilities/UI/OnScreenMessageManager.cs +++ b/Assets/Scripts/Utilities/UI/OnScreenMessageManager.cs @@ -36,7 +36,7 @@ namespace SanAndreasUnity.Utilities msg.ScreenPos += msg.velocity * Time.deltaTime; if (msg.timeLeft <= 0) { - Object.Destroy(msg); + Object.Destroy(msg.gameObject); } }