using UnityEngine; using UnityEngine.Scripting; namespace LuBan.Runtime { /// /// 防止代码运行时发生裁剪报错。将这个脚本添加到启动场景中。不会对逻辑有任何影响 /// [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); } } }