using UnityEngine; namespace Stary.Evo.InformationSave { public static class ScaleExtension { public static Scale.Information GetScaleInformation(this Transform tf, string desc) { return tf.GetComponent()._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().Set(desc); } } }