Need help to enable/disable buttons for players.

Options
Hi. I have a requirement where I will have 5 players connected to the same room. And when it is the first player turn the UI button should be enabled only to him and it should be disabled to all other players and after the first player click the button it will get disabled and for the 2nd player alone it should be enabled and so on to all other players. I tried but it only works for the first player every time. Any tutorial if available will help me. Thanks

Comments

  • tenzolinho
    Options
    Did you find something useful or can you give some advice in case you made it? This is also working for me only for the first player..
  • vamsi
    Options
    It's long back i worked on it. One simple way i found is that to have buttons as child to the player. So that you can check if (!photonview.ismine){
    //get the button component from the player and then disable it.
    }
  • shemtom
    Options

    Hey! could you share the script for more clarification on how you managed to make this or can I access it on Git?