[ClientRpc] // This function will only be used bt the server, to broadcast everyone color void RpcChangeColor() { colorController = GameObject.FindGameObjectWithTag("Mananger").GetComponent <ColorController> (); playerColorIndex = colorController.GetColorIndex(playerColorIndex); colorController.status[playerColorIndex] = true; GetComponent <MeshRenderer> ().material.color = colorController.colors [playerColorIndex]; hasColor = true; }