I'm still trying to understand server/client interaction. The documentation often leaves me with more questions than answers.
This is a 2d top down game where the client players are just pannable cameras looking down on a board game.
A Unit on the board is a gameobject with a child. The child also has a sprite renderer. NetworkTransform takes care of moving the object around, but the child sprite needs updating.
Unit Script
Syncvar Hook - How to update a new client?
This is a 2d top down game where the client players are just pannable cameras looking down on a board game.
A Unit on the board is a gameobject with a child. The child also has a sprite renderer. NetworkTransform takes care of moving the object around, but the child sprite needs updating.
Unit Script
Code (CSharp):
- public class Unit : NetworkBehaviour {...