public override void UserOut(int localSeat, ISFSObject responseData) { base.UserOut(localSeat, responseData); YxDebug.Log("seat[" + localSeat + "]离开了游戏!"); var playerPanel = App.GetGameData <DuifenGlobalData>().GetPlayer <DuifenPlayerPanel>(localSeat); playerPanel.Info = null; playerPanel.gameObject.SetActive(false); if (ReadyLocalSeatList.Contains(localSeat)) { ReadyLocalSeatList.Remove(localSeat); } }
public override void UserReady(int localSeat, ISFSObject responseData) { base.UserReady(localSeat, responseData); var readyPanel = App.GameData.GetPlayer <DuifenPlayerPanel>(localSeat); if (App.GameData.SelfLocalSeat == localSeat) { Reset(); } if (!ReadyLocalSeatList.Contains(localSeat)) { ReadyLocalSeatList.Add(localSeat); } readyPanel.OnUserReady(); }