private static void GameObject_OnDelete(GameObject sender, EventArgs args) { if (!sender.IsValid) { return; } for (var i = ActiveSkillshots.Count - 1; i >= 0; i--) { var skillshot = ActiveSkillshots[i]; if (skillshot.SkillshotData.ToggleParticleName != "" && sender.Name.Contains(skillshot.SkillshotData.ToggleParticleName)) { ActiveSkillshots.RemoveAt(i); } } }