public void ReadCamera()
    {
        photoTaker.TakePhoto();

        red.ReadColors();
        green.ReadColors();
        white.ReadColors();
        black.ReadColors();
        yellow.ReadColors();

        visual.ShowGame();
    }
예제 #2
0
    public void DetectBoard()
    {
        {
            photoTaker.TakePhoto();
            red.ReadColors();
            green.ReadColors();
            visual.ShowTiles();
            CalculateBoard();

            if (tiles.Length == 32)
            {
                FindObjectOfType <TextManager>().DisplayInfoAboutBoardDetection(true);
            }
            else
            {
                FindObjectOfType <TextManager>().DisplayInfoAboutBoardDetection(false);
            }
        }
    }