public void CreateTrail() { // bullet trail. trail = RecycleFactory.NewTrail(this, 0.8f, Constants.DamageColors[colorIndex]); World.Instance.AddTrail(trail); }
public void AddTrail(Trail pTrail) { Trails.Add(pTrail); pTrail.Chain.IsVisible = true; }
public static void Recycle(Trail pTrail) { pTrail.Recycle(); freeTrails.Enqueue(pTrail); }