public void initializeSkins(){
        playerProp = PhotonNetwork.MasterClient.CustomProperties;
        if (playerProp == null)
        {
            Debug.Log("Initializing properties");
            playerProp = new ExitGames.Client.Photon.Hashtable();
        }
        int[] skinMatVals = skins.setMySkin(-1);
        playerProp.Add("skin" + aiNumber, skinMatVals[0]);
        playerProp.Add("mat" + aiNumber, skinMatVals[1]);
        playerProp.Add("username" + aiNumber, playerName);

        PhotonNetwork.MasterClient.SetCustomProperties(playerProp); 

        if (team.Equals(PhotonNetwork.LocalPlayer.GetTeam()))
        {
            usernameText.text = playerName;
            namePlateCanvas.GetComponent<cameraBillboard>()
                           .setCam(GameObject.FindGameObjectWithTag("cam")
                           .GetComponent<Camera>());
        }
        else
        {
            namePlateCanvas.gameObject.SetActive(false);
        }
    }
 public void setTeamAndTimer(PunTeams.Team newTeam, double endTime, int aiNum, bool newChar, string name){
     team = newTeam;
     redTeam = team.Equals(PunTeams.Team.red);
     gameTimer = endTime;
     nextPosCheck = Time.time + 20f;
     countdown = true;
     aiNumber = aiNum;
     if (newChar)
     {
         generateName();
     }
     else
     {
         playerName = name;
         pView.RPC("setName", RpcTarget.AllBufferedViaServer, playerName);
         initializeSkins();
     }
 }