Wiki

Case Status
Log In

Wiki

 
Home ยป Add-ons»Photon Networking»Photon DemoWorker Sample»Photon DemoWorker Behavior set…
Index
Navigation
Community Wiki

Photon DemoWorker Behavior set up Fsm

Enabled disabled camera script and set the controllable state of the player.

This is a critical Fsm.

 
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:

Tags:

Last modified on 5/22/2012 1:15 AM by User.

  • RSS Feed