mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
refactor: cmdDelegate dictionary should be readonly
This commit is contained in:
parent
1869c15173
commit
9ef34701d9
@ -352,7 +352,7 @@ protected class Invoker
|
|||||||
public CmdDelegate invokeFunction;
|
public CmdDelegate invokeFunction;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Dictionary<int, Invoker> cmdHandlerDelegates = new Dictionary<int, Invoker>();
|
static readonly Dictionary<int, Invoker> cmdHandlerDelegates = new Dictionary<int, Invoker>();
|
||||||
|
|
||||||
// helper function register a Command/Rpc/SyncEvent delegate
|
// helper function register a Command/Rpc/SyncEvent delegate
|
||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||||
|
Loading…
Reference in New Issue
Block a user