Little Question About Level Change
Options
Hi
Sorry my english is not very good.
I use Photon to create an online game with a login system and different dynamic levels.
I have wrote a class to initialize, connect and disconnect. But I have a little issue with level change.
If I change the level (in unity3d), the class is not longer available. If I instantiate the class again, I can not use it.
My question is, how can I get the active peer from the engine and initialize again, without connect again?
Do you understand me?
Thanks.
Sorry my english is not very good.
I use Photon to create an online game with a login system and different dynamic levels.
I have wrote a class to initialize, connect and disconnect. But I have a little issue with level change.
If I change the level (in unity3d), the class is not longer available. If I instantiate the class again, I can not use it.
My question is, how can I get the active peer from the engine and initialize again, without connect again?
Do you understand me?
Thanks.
0
Comments
-
Either mark themonobehaviour as DontDestroyOnLoad or don't have the peer in a monobehaviour at all but something else that is not "killed on level end" by the asset cleanup0
-
Thank's, it works fine now...
Grüessli id schwiiz0