43 lines
764 B
C#
43 lines
764 B
C#
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace DigitalRuby.ThunderAndLightning
|
||
|
{
|
||
|
public class LightningBoltSegmentGroup
|
||
|
{
|
||
|
public float LineWidth;
|
||
|
|
||
|
public int StartIndex;
|
||
|
|
||
|
public int Generation;
|
||
|
|
||
|
public float Delay;
|
||
|
|
||
|
public float PeakStart;
|
||
|
|
||
|
public float PeakEnd;
|
||
|
|
||
|
public float LifeTime;
|
||
|
|
||
|
public float EndWidthMultiplier;
|
||
|
|
||
|
public Color32 Color;
|
||
|
|
||
|
public readonly List<LightningBoltSegment> Segments = new List<LightningBoltSegment>();
|
||
|
|
||
|
public readonly List<Light> Lights = new List<Light>();
|
||
|
|
||
|
public LightningLightParameters LightParameters;
|
||
|
|
||
|
public int SegmentCount => Segments.Count - StartIndex;
|
||
|
|
||
|
public void Reset()
|
||
|
{
|
||
|
LightParameters = null;
|
||
|
Segments.Clear();
|
||
|
Lights.Clear();
|
||
|
StartIndex = 0;
|
||
|
}
|
||
|
}
|
||
|
}
|