فهرست منبع

修复在编辑器设置特效的EffectOffsetX/Y不起效果的bug

大爷 1 سال پیش
والد
کامیت
7b39b8264c
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      Common/CommonAI/Zone/Data.cs

+ 6 - 0
Common/CommonAI/Zone/Data.cs

@@ -4116,6 +4116,8 @@ namespace CommonAI.Zone
             ret.BindPartName = this.BindPartName;
             ret.ScaleToBodySize = this.ScaleToBodySize;
             ret.EffectHight = this.EffectHight;
+            ret.EffectOffsetX = this.EffectOffsetX;
+            ret.EffectOffsetY = this.EffectOffsetY;
             ret.SoundName = this.SoundName;
             ret.EarthQuakeMS = this.EarthQuakeMS;
             ret.EarthQuakeXYZ = this.EarthQuakeXYZ;
@@ -4139,6 +4141,8 @@ namespace CommonAI.Zone
             output.PutUTF(this.BindPartName);
             output.PutF32(this.ScaleToBodySize);
             output.PutF32(this.EffectHight);
+            output.PutF32(this.EffectOffsetX);
+            output.PutF32(this.EffectOffsetY);
             output.PutUTF(this.SoundName);
             output.PutS32(this.EarthQuakeMS);
             output.PutF32(this.EarthQuakeXYZ);
@@ -4161,6 +4165,8 @@ namespace CommonAI.Zone
             this.BindPartName = input.GetUTF();
             this.ScaleToBodySize = input.GetF32();
             this.EffectHight = input.GetF32();
+            this.EffectOffsetX = input.GetF32();
+            this.EffectOffsetY = input.GetF32();
             this.SoundName = input.GetUTF();
             this.EarthQuakeMS = input.GetS32();
             this.EarthQuakeXYZ = input.GetF32();