Update StateSync.md (#394)

Fixed title capitalization and changed example to OnStartClient instead of Start
This commit is contained in:
Chris Langsenkamp 2019-02-10 09:44:45 -05:00 committed by Paul Pacheco
parent 8756f28eac
commit a2e0651d7e

View File

@ -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;
}