com.wallstop-studios.dxmessaging 2.0.0-rc19 → 2.0.0-rc20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
using System;
|
|
4
4
|
using System.Runtime.CompilerServices;
|
|
5
5
|
using System.Runtime.Serialization;
|
|
6
|
-
using System.Text.Json.Serialization;
|
|
7
6
|
|
|
8
7
|
/// <summary>
|
|
9
8
|
/// A light abstraction layer over Unity's InstanceId. Meant to uniquely identify a game object.
|
|
@@ -14,12 +13,9 @@
|
|
|
14
13
|
{
|
|
15
14
|
public static readonly InstanceId EmptyId = new(0);
|
|
16
15
|
|
|
17
|
-
[JsonInclude]
|
|
18
|
-
[JsonPropertyName("id")]
|
|
19
16
|
[DataMember(Name = "id")]
|
|
20
17
|
public int Id => _id;
|
|
21
18
|
|
|
22
|
-
[JsonIgnore]
|
|
23
19
|
private readonly int _id;
|
|
24
20
|
|
|
25
21
|
#if UNITY_2017_1_OR_NEWER
|
|
@@ -27,7 +23,6 @@
|
|
|
27
23
|
public readonly UnityEngine.Object Object;
|
|
28
24
|
#endif
|
|
29
25
|
|
|
30
|
-
[JsonConstructor]
|
|
31
26
|
public InstanceId(int id)
|
|
32
27
|
{
|
|
33
28
|
_id = id;
|