Skip to content

Commit 9d29f80

Browse files
committed
docs(readme): Updated example script to not use obsolete API
1 parent 898a785 commit 9d29f80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ public class Chat : NetworkedBehaviour
5454

5555
private void OnGUI()
5656
{
57-
if (isClient)
57+
if (IsClient)
5858
{
5959
textField = GUILayout.TextField(textField, GUILayout.Width(200));
60+
6061
if (GUILayout.Button("Send") && !string.IsNullOrWhiteSpace(textField))
6162
{
6263
ChatMessages.Add(textField);

0 commit comments

Comments
 (0)