void OnDisable() { MMONetwork.CloseSocket(); }
public void BtnClickDisconnect() { ChatBox.text += "Closing connection." + Environment.NewLine; Debug.Log("Client socket closing"); MMONetwork.CloseSocket(); }
void OnApplicationQuit() { MMONetwork.CloseSocket(); }