17 lines
523 B
C#
17 lines
523 B
C#
using UnityEngine;
|
|
|
|
namespace Stary.Evo.InformationSave
|
|
{
|
|
public static class PositionEulerAnglesExtension
|
|
{
|
|
public static PositionEulerAngles.Information GetPositionEulerAnglesInformation(this Transform tf, string desc)
|
|
{
|
|
return tf.GetComponent<PositionEulerAngles>()._list.Find(n => n.desc == desc);
|
|
}
|
|
|
|
public static void SetPositionEulerAngles(this Transform tf, string desc)
|
|
{
|
|
tf.GetComponent<PositionEulerAngles>().Set(desc);
|
|
}
|
|
}
|
|
} |