Wiki

Case Status
Log In

Wiki

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

Photon DemoWorker Server stats Fsm

Shows the number of players, rooms, etc currently on the server.

This Fsm watches most server properties live. It is used within the main menu, when the user can choose or create a room to join.

We only start monitoring the stats when we are connected of course, so the best way is to wait for PHOTON / STATE : CONNECTED built in event. In the "watch the server properties and display them", we essentially query and store the number of players on the server, the number of players currently in a room ( that is actively playing), the number of rooms, and create the GUI elements to show them values.

 

Photon Actions used:

Photon Events used

Tags:

Last modified on 5/28/2012 4:49 AM by User.

  • RSS Feed