Notifications
Clear all

Photon PUN support

4 Posts
3 Users
0 Reactions
815 Views
(@dreamlarp)
Posts: 7
Active Member
Topic starter
 

Can you add to the roadmap support for photon?

Your kit will be used often with multi-player games that use photon. You making support your self since you know your kit best would be a big boost to you and your users/sales. Setting up the standard login/waiting room/ join games scenes would be a big help.biggrin

 
Posted : 09/07/2014 5:40 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

The integration with Photon PUN is pretty straightforward, you only need to setup the scene this way: first display the Combu login screen, then upon successful login set the Photon player name to Combu's logged user (PhotonNetwork.playerName = CBManager.instance.loggedUser.username) and display the Photon waiting room scene. The rest can remain the same as the Photon demo scene, for example WorkerMenu.cs from the Photon DemoWorker scene can be changed by replacing the lines 36-39 with:

PhotonNetwork.playerName = CBManager.instance.loggedUser.username;

and remove the lines 82-91 (where it displays the textfield for the player name).

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 10/07/2014 9:19 pm
(@meachware)
Posts: 31
Trusted Member
 

Skared Creations said
The integration with Photon PUN is pretty straightforward, you only need to setup the scene this way: first display the Combu login screen, then upon successful login set the Photon player name to Combu's logged user (PhotonNetwork.playerName = CBManager.instance.loggedUser.username) and display the Photon waiting room scene. The rest can remain the same as the Photon demo scene, for example WorkerMenu.cs from the Photon DemoWorker scene can be changed by replacing the lines 36-39 with:

<br />
PhotonNetwork.playerName = CBManager.instance.loggedUser.username;
<br />

and remove the lines 82-91 (where it displays the textfield for the player name).

Thanks for this!!!! smile

 
Posted : 18/11/2014 12:26 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

You can find here the complete sample code along with other third-party integrations examples.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 18/11/2014 12:29 pm
Share: