Hi,
I'm trying to launch a client's function, at the change of the host, I try in this way:
void Start()
{
TNManager.client.packetHandlers[(byte)Packet.ResponseSetHost] = MyOnSetHost;
}
void MyOnSetHost(Packet response, BinaryReader reader, IPEndPoint source)
{
Debug.Log ("ONSETHOST");
}
But the MyOneSetHost function doesn't been called. How can I do it?