Update ChildObjects.md

updated code example
This commit is contained in:
MrGadget 2019-08-28 00:46:40 -04:00 committed by GitHub
parent d578e720a4
commit 6568bc4fa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,16 +24,16 @@ Below is the Player Equip script to handle the changing of the equipped item, an
using UnityEngine;
using Mirror;
public enum EquippedItem : byte
{
nothing,
ball,
box,
cylinder
}
public class PlayerEquip : NetworkBehaviour
{
public enum EquippedItem : byte
{
nothing,
ball,
box,
cylinder
}
public GameObject rightHand;
[SyncVar(hook = nameof(OnChangeEquipment))]