23 lines
631 B
C#
23 lines
631 B
C#
using UnityEngine;
|
|
|
|
namespace Stary.Evo.InformationSave
|
|
{
|
|
public sealed class LocalEulerAngles : AbstractInformation<LocalEulerAngles.Information>
|
|
{
|
|
public override void Save(int index)
|
|
{
|
|
_list[index].localEulerAngles =transform.localEulerAngles.GetVector3Data();
|
|
}
|
|
|
|
public override void Switch(int index)
|
|
{
|
|
transform.localEulerAngles =_list[index].localEulerAngles.SetVector3Data();
|
|
}
|
|
|
|
[System.Serializable]
|
|
public sealed class Information : InformationBase
|
|
{
|
|
public Vector3Data localEulerAngles;
|
|
}
|
|
}
|
|
} |