Little Question About Level Change

Options
vampir26
vampir26
edited August 2011 in DotNet
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.

Comments

  • dreamora
    Options
    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 cleanup :)
  • vampir26
    Options
    Thank's, it works fine now...

    Grüessli id schwiiz :D