Skip to content

Commit c4f2639

Browse files
authored
prevent properties from being stripped out of WebGL builds. (#173)
1 parent f80f7f4 commit c4f2639

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Assets/Colyseus/Runtime/Scripts/Serializer/Schema/Types/ColyseusReflection.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class ReflectionField : Schema
2121
public string type;
2222

2323
[Type(2, "number")]
24-
public float referencedType;
24+
public float referencedType = -1;
2525
}
2626

2727
/// <summary>
@@ -56,6 +56,6 @@ public class ColyseusReflection : Schema
5656
public ArraySchema<ReflectionType> types = new ArraySchema<ReflectionType>();
5757

5858
[Type(1, "number")]
59-
public float rootType;
59+
public float rootType = -1;
6060
}
61-
}
61+
}

0 commit comments

Comments
 (0)