InformationSaveAndAudioCore_Over
This commit is contained in:
23
Assets/02.InformationSave/RunTime/Position.cs
Normal file
23
Assets/02.InformationSave/RunTime/Position.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Stary.Evo.InformationSave
|
||||
{
|
||||
public sealed class Position : AbstractInformation<Position.Information>
|
||||
{
|
||||
public override void Save(int index)
|
||||
{
|
||||
_list[index].position = transform.position.GetVector3Data();
|
||||
}
|
||||
|
||||
public override void Switch(int index)
|
||||
{
|
||||
transform.position = _list[index].position.SetVector3Data();
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public sealed class Information : InformationBase
|
||||
{
|
||||
public Vector3Data position;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user