com.alicizax.unity.focus-cr.../Runtime/LubanCroppingHelper.cs

23 lines
724 B
C#
Raw Normal View History

2025-01-23 10:35:19 +08:00
using UnityEngine;
using UnityEngine.Scripting;
namespace LuBan.Runtime
{
/// <summary>
/// 防止代码运行时发生裁剪报错。将这个脚本添加到启动场景中。不会对逻辑有任何影响
/// </summary>
[Preserve]
public class LubanCroppingHelper : MonoBehaviour
{
void Start()
{
_ = typeof(Luban.Runtime.BeanBase);
_ = typeof(Luban.Runtime.EDeserializeError);
_ = typeof(Luban.Runtime.SerializationException);
_ = typeof(Luban.Runtime.SegmentSaveState);
_ = typeof(Luban.Runtime.ByteBuf);
_ = typeof(Luban.Runtime.ITypeId);
_ = typeof(Luban.Runtime.StringUtil);
}
}
}