public void SetCallLordResult(CallLord state) { CallLordReult.SetActive(false); GiveUpCallLordResult.SetActive(false); GrapLordResult.SetActive(false); switch (state) { case CallLord.CALL_LORD: CallLordReult.SetActive(true); break; case CallLord.GIVE_UP_CALL_LORD: GiveUpCallLordResult.SetActive(true); break; case CallLord.GRAP_LORD: GrapLordResult.SetActive(true); break; case CallLord.GIVE_UP_GRAP_LORD: GiveUpCallLordResult.SetActive(true); break; } }
public void SetCallLordResult(CallLord result) { CallLordButtonGroup.SetActive(false); GrapLordButtonGroup.SetActive(false); CountDownView.gameObject.SetActive(false); CallLordResultView.gameObject.SetActive(true); CallLordResultView.SetCallLordResult(result); }
private void SendCallLordMsg(int callLordSeat, CallLord state, List <int> resultSeats, List <int> results) { CallLordMsg msg = new CallLordMsg(); msg.CurrentCallSeat = callLordSeat; msg.CurrentCallState = (int)state; msg.WaitTime = _callLordWaitSeconds; foreach (int seat in resultSeats) { msg.CallLordResultSeats.Add(seat); } foreach (int result in results) { msg.CallLordResults.Add(result); } foreach (var player in _playerList) { SendMsgToClient(player, MessageDefine.G2C_CALL_LORD, msg); } }
public void SetCallLordState(CallLord state, int waitTime) { gameObject.SetActive(true); CountDownView.gameObject.SetActive(true); CallLordResultView.gameObject.SetActive(false); switch (state) { case CallLord.CALL_LORD: CallLordButtonGroup.SetActive(true); GrapLordButtonGroup.SetActive(false); break; case CallLord.GRAP_LORD: CallLordButtonGroup.SetActive(false); GrapLordButtonGroup.SetActive(true); break; } CountDownView.StartCountDown(waitTime); }
public abstract void OnCallLordOver(CallLord state);
public abstract void OnCallLord(int waitTime, CallLord state);
private void ReqCallLord(CallLord result) { NetworkManager.Instance.SendMsg(MessageDefine.C2G_REQ_CALL_LORD, new ResponseCallLordMsg { Seat = DDZGameData.Instance.MySeatIndex, Result = (int)result }); }
public override void OnCallLordOver(CallLord state) { CallLordResultView.gameObject.SetActive(true); CallLordResultView.SetCallLordResult(state); CountDownView.gameObject.SetActive(false); }
public override void OnCallLord(int waitTime, CallLord state) { CountDownView.gameObject.SetActive(true); CountDownView.StartCountDown(waitTime); }
public override void OnCallLordOver(CallLord state) { CallLordView.SetCallLordResult(state); }
public override void OnCallLord(int waitTime, CallLord state) { CallLordView.gameObject.SetActive(true); CallLordView.SetCallLordState(state, waitTime); }