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