public void SetSelRole(uint _pid) { if (LoginPlayerDic.ContainsKey(_pid)) { SelRole = LoginPlayerDic[_pid] as PlayerBaseInfo; } }
public PlayerBaseInfo GetSelRole(uint _pid) { if (LoginPlayerDic.ContainsKey(_pid)) { return(LoginPlayerDic[_pid] as PlayerBaseInfo); } return(null); }