Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     //scoreManager = FindObjectOfType<ScoreManager>();
     mFindMatches   = FindObjectOfType <FindMatches>();
     blankSpaces    = new bool[width, height];
     dots           = new GameObject[width, height];
     breakableTiles = new BackgroundTile[width, height];
     SetUp();
 }
Beispiel #2
0
        // Start is called before the first frame update
        void Start()
        {
            isColumnBomb   = false;
            isRowBomb      = false;
            isColorBomb    = false;
            isAdjacentBomb = false;

            hintManager = FindObjectOfType <HintManager>();
            mBoard      = GameObject.FindObjectOfType <Board>();
            findMatches = FindObjectOfType <FindMatches>();

            if (this.gameObject.GetComponent <CircleCollider2D>() == null)
            {
                this.gameObject.AddComponent <CircleCollider2D>();
            }

            /*
             *
             * row = targetY;
             * column = targetX;
             *
             * prevRow = row;
             * prevColumn = column;*/
        }