We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69aaac6 commit 6ff2461Copy full SHA for 6ff2461
MLAPI/Data/NetworkedVar.cs
@@ -1,12 +1,14 @@
1
using MLAPI.NetworkingManagerComponents.Binary;
2
using MLAPI.MonoBehaviours.Core;
3
using System.Collections.Generic;
4
+using UnityEngine;
5
6
namespace MLAPI.Data
7
{
8
/// <summary>
9
/// A variable that can be synchronized over the network.
10
/// </summary>
11
+ [System.Serializable]
12
public class NetworkedVar<T> : INetworkedVar
13
14
@@ -54,6 +56,7 @@ public NetworkedVar(T value)
54
56
this.InternalValue = value;
55
57
}
58
59
+ [SerializeField]
60
private T InternalValue = default(T);
61
62
/// The value of the NetworkedVar container
0 commit comments