Hy! I need help! After createjoinroom first time, connection from delegate is null. after second time the conection receives proper value.
Why connection does not receive value for the first time?
by Alex1339 » March 21st, 2017, 7:07 pm
by Henrik » March 21st, 2017, 9:16 pm
by Alex1339 » March 22nd, 2017, 7:36 am
clientGame.Multiplayer.CreateJoinRoom(rooms[j].Id.ToString(), "Public", true, null, null,
delegate (Connection conn)
{
connect = conn;
connect.OnMessage += ConnectOnMessage;
Debug.Log("SuccesJoin " + connect.ToString());
}
},
delegate
{
});
Global.servConnection = connect;
by Henrik » March 22nd, 2017, 8:55 am
by Alex1339 » March 22nd, 2017, 9:41 am
by aseemgarg321 » March 23rd, 2017, 6:32 am
by Alex1339 » March 23rd, 2017, 7:39 am
aseemgarg321 wrote:Yes.. And also any kind of Action/Function with this "connection" need to be done only after you have received Successful Call back..
Thanks,
Aseem