diff --git a/Unity/Assets/Scripts/Model/Share/Module/Unit/Unit.cs b/Unity/Assets/Scripts/Model/Share/Module/Unit/Unit.cs index 6e07849c48c..8398df5e45b 100644 --- a/Unity/Assets/Scripts/Model/Share/Module/Unit/Unit.cs +++ b/Unity/Assets/Scripts/Model/Share/Module/Unit/Unit.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using MemoryPack; using MongoDB.Bson.Serialization.Attributes; using Unity.Mathematics; @@ -7,16 +6,13 @@ namespace ET { [ChildOf(typeof(UnitComponent))] [DebuggerDisplay("ViewName,nq")] - [MemoryPackable] public partial class Unit: Entity, IAwake { public int ConfigId { get; set; } //配置表id - [MemoryPackInclude] [BsonElement] private float3 position; //坐标 - [MemoryPackIgnore] [BsonIgnore] public float3 Position { @@ -29,7 +25,6 @@ public float3 Position } } - [MemoryPackIgnore] [BsonIgnore] public float3 Forward { @@ -37,11 +32,9 @@ public float3 Forward set => this.Rotation = quaternion.LookRotation(value, math.up()); } - [MemoryPackInclude] [BsonElement] private quaternion rotation; - [MemoryPackIgnore] [BsonIgnore] public quaternion Rotation {