Files
plugin-library/Assets/02.InformationSave/RunTime/TrailRendererInfo.cs

25 lines
658 B
C#
Raw Normal View History

2025-03-26 09:34:52 +08:00
using UnityEngine;
namespace Stary.Evo.InformationSave
{
public class TrailRendererInfo : AbstractInformation<TrailRendererInfo.Information>
{
public override void Save(int index)
{
TrailRenderer tr = transform.GetComponent<TrailRenderer>();
_list[index].time = tr.time;
}
public override void Switch(int index)
{
TrailRenderer tr = transform.GetComponent<TrailRenderer>();
tr.time = _list[index].time;
}
[System.Serializable]
public sealed class Information : InformationBase
{
public float time;
}
}
}