InformationSaveAndAudioCore_Over
This commit is contained in:
25
Assets/02.InformationSave/RunTime/TrailRendererInfo.cs
Normal file
25
Assets/02.InformationSave/RunTime/TrailRendererInfo.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user