private void TakeTurn() { Debug.Log("Start"); int[] moveIndexes = controller.validMoveIndexes; controller.MakeMove(moveIndexes[Random.Range(0, moveIndexes.Length)], myType); }
private void Update() { if (Input.GetMouseButtonDown(0)) { Vector2 mousePos = cam.ScreenToWorldPoint(Input.mousePosition); bool result = controller.MakeMove(mousePos, myType); if (result) { Debug.Log("Good moove"); } else { Debug.Log("Invalid moove"); } } }