Reading the documentation, it's not clear to me which object references I should be able to pass around in commands. Can I pass any part (the gameobject itself, component) of a spawned object in a command? Do the have to be NetworkBehaviours?
I'm experiencing some problems with it and I don't understand if...
Command object references
Code (CSharp):
- [Command]
- {
- // do something
- }
- [Command]
- void CmdDoSomething2(MyScriptAttachedToASpawnedObject obj)
- {
- // do something
- }
Command object references