public void CmdUserIDGenerate() { GameSceneManager sm = GameObject.FindGameObjectWithTag("NetworkManager").GetComponent <GameSceneManager>(); this.userID = sm.GetUserID(); this.bw.Write(this.msgCommond); this.bw.Write(this.userID); }