void UpdateTrail() { //Check and update trail trail.PointStart.localPosition = new Vector3(0, 0, PartEditor.TrailStart.value); trail.PointEnd.localPosition = new Vector3(0, 0, PartEditor.TrailEnd.value); if (trailQuad != null) { Destroy(trailQuad); trailQuad = CreateQuad.CreateTrailQuad(trail.PointStart, trail.PointEnd, trail, colorManager.ColorForSaberType(Saber.SaberType.SaberB)); } }
public void SpawnTrailQuad() { trailQuad = CreateQuad.CreateTrailQuad(trail.PointStart, trail.PointEnd, trail, colorManager.ColorForSaberType(Saber.SaberType.SaberB)); }