From 0b00b6c6ba94cd79fedd37dc0f735fc85b107390 Mon Sep 17 00:00:00 2001 From: tanghai Date: Sun, 26 Nov 2023 18:11:01 +0800 Subject: [PATCH] =?UTF-8?q?Unit=E4=B8=8D=E9=9C=80=E8=A6=81=E7=94=A8MemoryP?= =?UTF-8?q?ack=E5=BA=8F=E5=88=97=E5=8C=96=EF=BC=8C=E4=B8=80=E8=88=AC?= =?UTF-8?q?=E5=8F=AA=E6=98=AF=E5=B8=A7=E5=90=8C=E6=AD=A5=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=EF=BC=8C=E6=9C=8D=E5=8A=A1=E7=AB=AF=E5=BA=8F=E5=88=97=E5=8C=96?= =?UTF-8?q?=E5=8E=8B=E5=8A=9B=E4=B8=8D=E5=A4=A7=EF=BC=8C=E7=94=A8bson?= =?UTF-8?q?=E5=8D=B3=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Unity/Assets/Scripts/Model/Share/Module/Unit/Unit.cs | 7 ------- 1 file changed, 7 deletions(-) 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 {