InformationSaveAndAudioCore_Over
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Stary.Evo.InformationSave
|
||||
{
|
||||
public static class EulerAnglesExtension
|
||||
{
|
||||
public static EulerAngles.Information GetEulerAnglesInformation(this Transform tf, string desc)
|
||||
{
|
||||
return tf.GetComponent<EulerAngles>()._list.Find(n => n.desc == desc);
|
||||
}
|
||||
|
||||
public static Vector3 GetEulerAngles(this Transform tf, string desc)
|
||||
{
|
||||
return GetEulerAnglesInformation(tf, desc).eulerAngles.SetVector3Data();
|
||||
}
|
||||
|
||||
public static void SetEulerAngles(this Transform tf, string desc)
|
||||
{
|
||||
tf.GetComponent<EulerAngles>().Set(desc);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user