- Home /
Unity 5.6 Webgl Photon Spawn Error
I can select team on UnityEditor but i cant select on Webgl You can look http://blueicegame.com/Combatest/index.html
 if(gameMode == "TDM"){
                 //Team 1
                 if((string)PhotonNetwork.player.customProperties["TeamName"] == team_1.teamName 
                 || (!Player && (string)PhotonNetwork.player.customProperties["TeamName"] != "Spectators" || roundEnded)){
                     GUI.enabled = false;
                 }else{
                     GUI.enabled = true;
                 }
         if(GUILayout.Button(team_1.teamName,GUILayout.Width(217),GUILayout.Height(60))){
 
             //Kill current player if exist
                     if(!Player){
                         SpawnPlayer(team_1.teamName);
                     }else{
                         SwapTeams(team_1.teamName);
                     }
                     isPaused = false;
                     //Player joined team, notify everyone
                     gameObject.SendMessage("PlayerJoinedTeam", team_1.teamName, SendMessageOptions.DontRequireReceiver);
                 }
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Photon error nentworking 0 Answers
Photon wont sync for the masterclient. 1 Answer
Switching weapons in PhotonNetwork 1 Answer
Photon Network instantiate problem when Master changes 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                