Exemple #1
0
 public void OpponentStep()
 {
     if (BoardScript.MyTurn)
     {
         return;
     }
     BoardScript.MyTurn            = true;
     GetComponent <Image>().sprite = BoardScript.Offensive ? white : black;
     LxcTools.EnableImage(GetComponent <Image>());
     GetComponent <Button>().enabled = false;
     hintText.text = "该你了";
 }
Exemple #2
0
 public void Step()
 {
     if (!BoardScript.MyTurn)
     {
         return;
     }
     BoardScript.MyTurn            = false;
     GetComponent <Image>().sprite = BoardScript.Offensive ? black : white;
     LxcTools.EnableImage(GetComponent <Image>());
     GetComponent <Button>().enabled = false;
     hintText.text = "等待对手";
     Client.Step(x, y);
 }