mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Update ChildObjects.md
updated code example
This commit is contained in:
parent
d578e720a4
commit
6568bc4fa9
@ -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))]
|
||||
|
Loading…
Reference in New Issue
Block a user