Exemplo n.º 1
0
 //Callbacks
 void rpcConnection_OnConnect(RPCConnection RpcConnection)
 {
     Debug.Log("Connected...");
     _isConnected = true;
     MainGame     = new Juniverse.ClientLibrary.MainGame(RpcConnection);
     MainGame.OnProfileChanged += ProfileChangedNotification;
     MainGame.OnLoggedOut      += LoggedOutNotification;
     _popUpManager.BindNotificationsFunctions();
     Debug.Log("Fetching game data...");
     DeviceManager.instance.MainGame.GetGameDataAsync((gameData) =>
     {
         Debug.Log("Fetching game data. Done!");
         DeviceManager.instance.EndLoading();
         GameData = gameData;
     }, (ex) => DeviceManager.instance.ShowException(ex));
 }