Unity player differ from build version
hello! i have a general question: In what conditions, unity player work different from build version? in my unity development lifetime, sometimes i encounter a situation that Unity play button works different than build version. for example i have this code:
private void PlayerSocketOnReceive(PlayerSocket arg1, byte[] arg2)
{
if (arg2.Length == 1 && arg2[0] == 0)
{
print("first");
arg1.Send(Serializer.Serialize(GetComponent<BattleData>().player));
print("second");
}
debugger print first but never print second, while build version works fine. the send function is an async function that get execute in another thread.
I'm using 2019.2.8f1 and windows build.
thanks!
Comment