Files
plugin-library/Assets/02.InformationSave/RunTime/Extension/JBoxColliderExtension.cs
2025-03-26 09:34:52 +08:00

17 lines
476 B
C#

using UnityEngine;
namespace Stary.Evo.InformationSave
{
public static class JBoxColliderExtension
{
public static JBoxCollider.Information GetBoxColliderInformation(this Transform tf, string desc)
{
return tf.GetComponent<JBoxCollider>()._list.Find(n => n.desc == desc);
}
public static void SetBoxCollider(this Transform tf, string desc)
{
tf.GetComponent<JBoxCollider>().Set(desc);
}
}
}