InformationSaveAndAudioCore_Over
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Stary.Evo.InformationSave
|
||||
{
|
||||
public static class RectTransformInfoExtension
|
||||
{
|
||||
public static RectTransformInfo.Information GetRectTransformInformation(this RectTransform rectTransform,
|
||||
string desc)
|
||||
{
|
||||
return rectTransform.GetComponent<RectTransformInfo>()._list.Find(n => n.desc == desc);
|
||||
}
|
||||
|
||||
public static void SetRectTransformInfo(this RectTransform rectTransform, string desc)
|
||||
{
|
||||
rectTransform.GetComponent<RectTransformInfo>().Set(desc);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user