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

Command only working for host

$
0
0
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using UnityEngine.Networking;
  6. public class Player : NetworkBehaviour {
  7.     [SyncVar (hook="TurnEndedStatus")]
  8.     public bool turnEnded = false;
  9.         bool resolvingTurn = false;
  10.  
  11.     void TurnEndedStatus(bool value){
  12.         turnEnded = value;
  13.     }
  14.  
  15.     [Client]
  16.     public void OnGUI()
  17.     {
  18.         float buttonHeight = 50;
  19.         float buttonWidth = 150;
  20.         buttonRect =...
Command only working for host

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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