private void RemoveTargetMarker(GameActor target) { var go = target.GetComponentsInChildren <ParticleSystem>(); for (int i = 0; i < go.Length; i++) { if (go[i].name.Contains("TargetMarker")) { GameObjectPool.Recycle(go[i].gameObject); //GameObject.Destroy(go[i].gameObject); } } _hasMarker = false; }