mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
1736bb0c42
When the callback for SyncDictionary is called in the server for set or add it is getting called before the syncdictionary is updated. In the client this happens after. Example: ```cs public void OnScoreUpdatedCallback(ScoreSyncDict.Operation op, uint ident, int score) { if (op == ScoreSyncDict.Operation.OP_SET) Debug.Log($"The value in the dictionary is {scoreDict[ident]}"); } ``` In host mode this prints the previous value. In client mode this prints the current value. This PR fixes this problem and makes both print the current value |
||
---|---|---|
.. | ||
Mirror | ||
ScriptTemplates | ||
Mirror.meta | ||
ScriptTemplates.meta |