public void SetUpUserJoinGame(MessageReceiving _mess) { PlayerJoinGame_Data _data = new PlayerJoinGame_Data(_mess); sbyte _myIndexChair = DataManager.instance.userData.CastToUserDataInGame().index; if (_data.viewerId == _myIndexChair) { #if TEST Debug.LogError(">>> Chỗ này tao đang ngồi: " + _data.viewerId); #endif } else if (_data.viewerId > _myIndexChair) { _data.viewerId--; _data.userData.index = _data.viewerId; } processPlayerJoinGame.Add(_data); }
public void SetUpUserJoinGame(MessageReceiving _mess) { PlayerJoinGame_Data _data = new PlayerJoinGame_Data(_mess); processPlayerJoinGame.Add(_data); }