mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Updated PickupDropChild doc
This commit is contained in:
parent
77ae31ea57
commit
d9256228bf
BIN
doc/articles/Concepts/GameObjects/ChildObjects3.PNG
Normal file
BIN
doc/articles/Concepts/GameObjects/ChildObjects3.PNG
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
@ -212,3 +212,7 @@ This method is simply called from `OnMouseDown` in the Scene Object script:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Since the SceneObject(Clone) is networked, we can pass it directly through to `CmdPickupItem` on the player object to set the equipped item SyncVar and destroy the scene object.
|
Since the SceneObject(Clone) is networked, we can pass it directly through to `CmdPickupItem` on the player object to set the equipped item SyncVar and destroy the scene object.
|
||||||
|
|
||||||
|
For this entire example, the only prefab that needs to be registered with Network Manager besides the Player is the SceneObject prefab.
|
||||||
|
|
||||||
|
![](ChildObjects3.PNG)
|
||||||
|
Loading…
Reference in New Issue
Block a user