//method for switching the players shade [PunRPC] public void SwitchShade(int playerID) { if (playerID != this.playerID) { return; } //set the next shade colour.NextShade(); //set the colour of the shade to equal what the new shade is sprite.DOColor(colour.GetCurrentColor(), 0.5f); SetGlowRenderers(colour.GetCurrentColor(), 0.5f); tr.colorGradient = gradients[(int)colour.currentColourType]; //call the switch shade method so the players can see each others shades if (photonView.isMine) { photonView.RPC("SwitchShade", PhotonTargets.OthersBuffered); } }