public void GenerateLightningBolt(LightningBoltParameters p, LightningBolt bolt)
        {
            CurrentBolt = bolt;

            Vector3 start = p.ApplyVariance(p.Start, p.StartVariance);
            Vector3 end   = p.ApplyVariance(p.End, p.EndVariance);

            OnGenerateLightningBolt(start, end, p);

            CurrentBolt = null;
        }
Ejemplo n.º 2
0
 public void GenerateLightningBolt(LightningBolt bolt, LightningBoltParameters p, out Vector3 start, out Vector3 end)
 {
     start = p.ApplyVariance(p.Start, p.StartVariance);
     end   = p.ApplyVariance(p.End, p.EndVariance);
     OnGenerateLightningBolt(bolt, start, end, p);
 }