LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/DigitalRuby/ThunderAndLightning/LightningBoltSegmentGroup.cs

43 lines
764 B
C#
Raw Normal View History

2023-12-22 22:51:17 +00:00
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;
}
}
}