public void usD() { if (!nums.isDice) { int point = Random.Range(1, 7); num.text = point.ToString("0"); nums.point = point; nums.isDice = true; steps[nums.num] += point; step[nums.num].text = steps[nums.num].ToString("0"); } /*//nums.clickOn(); * if (player!=null&&pl!=null) * { * player.cangop = false; * } * //pl = camera.clickOn(); * if (pl!=null ) * { * player = pl.GetComponent<playerController>(); * int point = Random.Range(1, 7); * player.canGo = point; * if (point==6) * { * nums.num += 1; * } * player.ifgo = true; * num.text = point.ToString("0"); * player.canFly = true; * player.cangop = true; * } * pl = null; * nums.num = nums.num % 2; * * if (nums.num==0) * { * whom.text = "轮到绿色"; * } * else * { * whom.text = "轮到红色"; * }*/ nums.clickOn(); }