add serialize and deserialize method in CharacterNetSync