n9tro
List changed by first function gets reset by second function
Some further notes, modifying the room variable directly in Handle propagates the changes, implying that the issue is in the RemovePlayer function, following the stack ind debug shows that its the same one, but for some reason the changes made by RemovePlayer dont propagate
9 replies
List changed by first function gets reset by second function
we have
GameManager.Instance.Rooms
which is a List<GameRoom>
. in the case that im testing, room.PlayerCount is 2, when RemovePlayer gets called room.PlayerCount is 1. but when the function HandleRoomUpdate
gets the room, PlayerCount is 2. the change from RemovePlayer is not propagating9 replies