public void OnClickRaceCall() { // JJSocket sock = new JJSocket(); // sock.type = JJSocketType.RoomRaceCall; // TcpSocketManager.Instance.tcpSocket.SendMessage(sock); // Dealer.RaceCall(mySlot); Dealer.Race(RaceType.Call, mySlot); State = PlayingRoomState.Play_Other; btnRaceBbing.gameObject.SetActive(false); btnRaceCheck.gameObject.SetActive(false); btnRaceHalf.gameObject.SetActive(false); btnRaceCall.gameObject.SetActive(false); btnRaceDie.gameObject.SetActive(false); }
IEnumerator StartSetting() { State = PlayingRoomState.Join; yield return new WaitForSeconds(0.1f); for(int i = 0; i < playersInfo.Length; i++) { playersInfo[i].SetSlot(i); } yield return new WaitForSeconds(1.1f); Dealer.GiveCard(0); yield return new WaitForSeconds(1.0f); State = PlayingRoomState.Play_MyTurn; }
public void Race() { State = PlayingRoomState.Play_MyTurn; btnRaceCheck.gameObject.SetActive(true); btnRaceBbing.gameObject.SetActive(true); btnRaceHalf.gameObject.SetActive(true); btnRaceDie.gameObject.SetActive(true); btnRaceCall.gameObject.SetActive(false); if(Dealer.round == 0 && Dealer.raceCircle == 1) { btnRaceCheck.gameObject.SetActive(false); btnRaceBbing.gameObject.SetActive(false); btnRaceHalf.gameObject.SetActive(false); btnRaceDie.gameObject.SetActive(true); btnRaceCall.gameObject.SetActive(true); } else if(Dealer.raceCircle > 0) { btnRaceCheck.gameObject.SetActive(false); btnRaceCall.gameObject.SetActive(true); } }