예제 #1
0
        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));
            }
        }
예제 #2
0
 public void SpawnTrailQuad()
 {
     trailQuad = CreateQuad.CreateTrailQuad(trail.PointStart, trail.PointEnd, trail, colorManager.ColorForSaberType(Saber.SaberType.SaberB));
 }