File tree Expand file tree Collapse file tree 5 files changed +6
-7
lines changed Expand file tree Collapse file tree 5 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ public class ClientRpc : Attribute
11
11
/// <summary>
12
12
/// The channelName to send this Rpc
13
13
/// </summary>
14
- public string channelName = "MLAPI_INTERNAL" ;
14
+ public string channelName { get ; set ; } = "MLAPI_INTERNAL" ;
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ public class Command : Attribute
11
11
/// <summary>
12
12
/// The channelName to send this Command
13
13
/// </summary>
14
- public string channelName = "MLAPI_INTERNAL" ;
14
+ public string channelName { get ; set ; } = "MLAPI_INTERNAL" ;
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ public class SyncedVar : Attribute
11
11
/// <summary>
12
12
/// The method name to invoke when the SyncVar get's updated.
13
13
/// </summary>
14
- public string hookMethodName = string . Empty ;
14
+ public string hookMethodName { get ; set ; } = string . Empty ;
15
15
/// <summary>
16
16
/// If true, the syncedVar will only be synced to the owner.
17
17
/// </summary>
18
- public bool target = false ;
18
+ public bool target { get ; set ; }
19
19
/// <summary>
20
20
/// The delay for syncing this variable.
21
21
/// </summary>
22
- public float syncDelay = 0.1f ;
22
+ public float syncDelay { get ; set ; } = 0.1f ;
23
23
/// <summary>
24
24
/// Gets the time the Syncedvar was last synced
25
25
/// </summary>
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ public class TargetRpc : Attribute
11
11
/// <summary>
12
12
/// The channelName to send this Target
13
13
/// </summary>
14
- public string channelName = "MLAPI_INTERNAL" ;
14
+ public string channelName { get ; set ; } = "MLAPI_INTERNAL" ;
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ private void OnEnable()
74
74
NetworkedObject . NetworkedBehaviours . Add ( this ) ;
75
75
OnEnabled ( ) ;
76
76
}
77
-
78
77
internal bool networkedStartInvoked = false ;
79
78
/// <summary>
80
79
/// Gets called when message handlers are ready to be registered and the networking is setup
You can’t perform that action at this time.
0 commit comments