mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Update StateSync.md (#394)
Fixed title capitalization and changed example to OnStartClient instead of Start
This commit is contained in:
parent
8756f28eac
commit
a2e0651d7e
@ -1,4 +1,4 @@
|
||||
# State synchronization
|
||||
# State Synchronization
|
||||
|
||||
State synchronization refers to the synchronization of values such as integers, floating point numbers, strings and boolean values belonging to scripts.
|
||||
|
||||
@ -65,7 +65,7 @@ public class MyScript : NetworkBehaviour
|
||||
Debug.Log("buf changed:" + op);
|
||||
}
|
||||
|
||||
void Start()
|
||||
void OnStartClient()
|
||||
{
|
||||
m_bufs.Callback = BufChanged;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user