浏览代码

修复TSRandom序列化错误导致随机数不正确的问题 (#562)

susices 2 年之前
父节点
当前提交
5a6eacc34e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Unity/Assets/Scripts/ThirdParty/TrueSync/TSRandom.cs

+ 2 - 0
Unity/Assets/Scripts/ThirdParty/TrueSync/TSRandom.cs

@@ -115,6 +115,7 @@ namespace TrueSync {
         /**
          *  @brief Returns a {@link FP} between 0.0 [inclusive] and 1.0 [inclusive].
          **/
+        [MemoryPackIgnore]
         public FP value {
             get {
                 return this.NextFP();
@@ -124,6 +125,7 @@ namespace TrueSync {
         /**
          *  @brief Returns a random {@link TSVector} representing a point inside a sphere with radius 1.
          **/
+        [MemoryPackIgnore]
         public TSVector insideUnitSphere {
             get {
                 return new TSVector(value, value, value);