Enabled disabled camera script and set the controllable state of the player.
This is a critical Fsm.
.png)
This Fsm is key, it disables camera and input controller on other players, because all players share the same code, we have to only enable the player owned by this running instance
You'll notice that the use of Photon View Get is Mine is different from the other Fsm in this demo, here instead of triggering events based on whether we own this gameObject or not, we store the result in a boolean, and we simple use that boolean to enabled or disable components ( in state "enabled camera" and state "enable thirdperson control")
Photon Actions used:
- Photon View Get Is Mine ( in state "get is mine flag")