예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     FindMatches = FindObjectOfType <UpgradedMatchFinder>();
     alltiles    = new BackgroundTile[width, height];
     allStones   = new GameObject[width, height];
     SetUp();
 }
예제 #2
0
    void Start()
    {
        board       = FindObjectOfType <Board>();
        findMatches = FindObjectOfType <UpgradedMatchFinder>();

        /*targetX = (int)transform.position.x;
         * targetY = (int)transform.position.y;
         * row = targetY;
         * column = targetX;
         * if (board.SecondRow)
         * {
         *  targetY++;
         *  row++;
         *  board.SecondRow = false;
         * }
         * if (targetY == 0)
         * {
         *  board.SecondRow = true;
         * }*/
        //previousRow = row;
        //previousColumn = column;
    }