From 05dd3b6660f024263f135b9f52376426f85641d5 Mon Sep 17 00:00:00 2001 From: Chris Langsenkamp Date: Wed, 4 Dec 2019 16:07:28 -0500 Subject: [PATCH] Updated DataTypes doc --- doc/Guides/DataTypes.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/Guides/DataTypes.md b/doc/Guides/DataTypes.md index 7b81bd339..91d73522b 100644 --- a/doc/Guides/DataTypes.md +++ b/doc/Guides/DataTypes.md @@ -45,7 +45,7 @@ Sometimes you might want to send a polymorphic data type to your commands. Mirro ```cs class Item { - public String name; + public string name; } class Weapon : Item @@ -62,7 +62,7 @@ class Armor : Item class Player : NetworkBehaviour { [Command] - public void CmdEquip(Item item) + void CmdEquip(Item item) { if (item is Weapon weapon) { @@ -75,7 +75,7 @@ class Player : NetworkBehaviour } } - public OnGUI() + void OnGUI() { if (isLocalPlayer) { @@ -94,7 +94,7 @@ class Player : NetworkBehaviour { name = "Gold Armor", hitPoints= 100, - Level = 3 + level = 3 }); } }