Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Photon masterClient only send data and won't receive?

$
0
0
Hi,
I'm trying to sync a vector between players by sending from each player his unique index and unique vector[index] value


Code (CSharp):
  1. public int[] Bets;
  2.     int BetIndex;
  3.     int RecivedBetIndex;
  4.  
  5.     int Bet;
  6.  
  7.     public Text RoomBet;
  8.    
  9.     void Start()
  10.     {
  11.         PhotonNetwork.automaticallySyncScene = true;
  12.         BetIndex = Random.Range(0,20);
  13.         Bets = new int[20];
  14.     }
  15.    
  16.     void Update()
  17.     {
  18.         Bets[BetIndex] = Bet;
  19.         Sum();
  20.     }
  21.  
  22.  
  23.     void...
Photon masterClient only send data and won't receive?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>