How to create notification bwtween two players when an action taken by one is finished?

I am currently trying to create a mini turn-based battle game between two players with the use of photon pun2 and unity3d. By now, I have encountered with an issue that obstructs me from proceeding to the start of the game battle due to the lack of the notification mechanism between the two clients.

Here are images of the variables and code snippets I have written for my game. The problem hereby is that when player1_KnightSelected/player1_HunterSelected or player2_KnightSelected/player2_HunterSelected is set to true, changes in these booleans can't be notified and the information regarding it can't be delivered to the other player. The boolean changes are all controlled by clicks on relevant buttons created within the game. Two of the button-clicked functions are screenshot in the following.


Can anyone tell me how to have the other player notified about these bool-related changes?


Answers