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 = "该你了"; }
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); }