// Use this for initialization private void Start() { mAllTiles = new Tile[width, height]; mAllGamePieces = new GamePiece[width, height]; mParticleManager = GameObject.FindWithTag("ParticleManager").GetComponent <ParticleManager>(); mBoardDeadlock = GetComponent <BoardDeadlock>(); }
private void Start() { _allTiles = new Tile[_width, _height]; _allGamePieces = new GamePiece[_width, _height]; _particlManager = GameObject.FindGameObjectWithTag("ParticleManager").GetComponent <ParticleManager>(); _boardDeadlock = GetComponent <BoardDeadlock>(); _boardShuffler = GetComponent <BoardShuffler>(); }
void Start() { m_allTiles = new Tile[width, height]; m_allGamePieces = new GamePiece[width, height]; m_particleManager = GameObject.FindWithTag("ParticleManager").GetComponent <ParticleManager>(); m_boardDeadlock = GetComponent <BoardDeadlock>(); m_boardShuffler = GetComponent <BoardShuffler>(); }
void Start() { particleManager = GameObject.FindWithTag("ParticleManager").GetComponent <ParticleManager>(); boardDeadlock = GetComponent <BoardDeadlock>(); boardShuffler = GetComponent <BoardShuffler>(); if (allowedGamePiecePrefabs == null || allowedGamePiecePrefabs.Length == 0) { allowedGamePiecePrefabs = gamePiecePrefabs; } }
// Start is called before the first frame update void Start() { width = settings.starters.Length; height = settings.starters[0].rowData.Length; m_allTiles = new Tile[width, height]; m_allGamePieces = new GamePiece[width, height]; m_particleManager = GameObject.FindWithTag("Particle Manager").GetComponent <ParticleManager>(); m_boardDeadlock = GetComponent <BoardDeadlock>(); m_boardShuffler = GetComponent <BoardShuffler>(); }
void Awake() { boardBomber = GetComponent <BoardBomber>(); boardClearer = GetComponent <BoardClearer>(); boardCollapser = GetComponent <BoardCollapser>(); boardDeadlock = GetComponent <BoardDeadlock>(); boardFiller = GetComponent <BoardFiller>(); boardHighlighter = GetComponent <BoardHighlighter>(); boardInput = GetComponent <BoardInput>(); boardMatcher = GetComponent <BoardMatcher>(); boardQuery = GetComponent <BoardQuery>(); boardSetup = GetComponent <BoardSetup>(); boardShuffler = GetComponent <BoardShuffler>(); boardTiles = GetComponent <BoardTiles>(); }
void Start() { // initialize the array of tiles m_allTiles = new Tile[width, height]; // intialize the array of game pieces m_allGamePieces = new GamePiece[width, height]; // find the particle manager by tag m_particleManager = GameObject.FindWithTag("ParticleManager").GetComponent <ParticleManager>(); m_boardDeadlock = GetComponent <BoardDeadlock> (); m_boardShuffler = GetComponent <BoardShuffler>(); }