Question by
UDN_60115ee5-2147-4fcc-8ff0-dd54695f410f · Mar 12, 2017 at 03:13 PM ·
networkingnetworknewbieintsend-variable
How to send variables through Unity Network?
I'm making a 1vs1 multiplayer game turn-based in 2D and C#.
This is the first time that I use the Unity Network, and there is one very simple thing that I can not solve: I have an int, and I want one of the two players to send a new value of the int to the other player, and that the other player receives and updates the int in his client.
How would be the code to do this?
Sorry if I have a bad english.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612113024im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How should I verify that all of my client Object are created and ready after loading a new scene? 0 Answers
Local player authority issues. 1 Answer
How to send Kinect skeleton data through Unity networks (multiplayer) 0 Answers
Establishing a local connection to server 1 Answer
Teleporting a NetworkTransform 0 Answers