- Home /
How can a canvas know which player is active
How can a canvas know which player is active? I've created a 2D card game for a solo player against robot opponents. I want to change it so all players see their own hands, and have their own view of the tabletop and the previously played cards. I created a lobby, but when the game starts, the players see completely different canvases with differently shuffled cards.
Answer by jmgek · Mar 20 at 08:38 PM
A canvas shouldn't have states. Your player manager / component should be controlling the state of what canvas they have.
Answer by shrdlu518 · Mar 20 at 09:37 PM
Thanks for the answer. Maybe I'm asking the wrong question. What connects a player with a canvas? In this case the player objects don't need to appear on the canvas, but the human players need to see the same things on the tabletop (except for their own hands.)
Your answer
Follow this Question
Related Questions
[Command] tag not working 0 Answers
Why does the money counter resets when I pull different objects trough the trigger? 1 Answer
Undertanding client/server stuff 2 Answers
How to receive streaming data over a UDP connection? 1 Answer
Infinite/procedural multiplayer world in Unity possible? 2 Answers