public Player(int id, string name, Socket socket) { this.id = id; this.name = name; playerConnector = new PlayerConnector(socket); playerConnector.GetEncestorByReference(this); }
public void Conect(Socket socket) { playerConnector = playerConnector ?? new PlayerConnector(socket); playerConnector.GetEncestorByReference(this); }