Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

Photon Question?

$
0
0
I am wondering how I can select the game object that the player has when he logs in, like a different player model all together from the other players. I want to pull information from an MySQL database or another database of some sort; I am not asking how to do this I already do know; I am wondering how I can take a variable well say public string Ships = “3”;

Than when that player loads they get that string while the others get string Ships = “1”; I am not entire sure how to take that and get photon to load a player object via int like that, yes I know I would have to so System.Convert.ToInt32(“Ships”, out int ShipsInt); or something similar. I hope I have given you enough to go on here to help me out. I know there is also another way to change a string to int but that’s not the question here.

Viewing all articles
Browse latest Browse all 1557

Trending Articles