Exemple #1
0
 // 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>();
 }
Exemple #2
0
 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>();
 }
Exemple #3
0
 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>();
 }
Exemple #4
0
 void Start()
 {
     particleManager = GameObject.FindWithTag("ParticleManager").GetComponent <ParticleManager>();
     boardDeadlock   = GetComponent <BoardDeadlock>();
     boardShuffler   = GetComponent <BoardShuffler>();
     if (allowedGamePiecePrefabs == null || allowedGamePiecePrefabs.Length == 0)
     {
         allowedGamePiecePrefabs = gamePiecePrefabs;
     }
 }
Exemple #5
0
    // 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>();
    }
Exemple #6
0
 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>();
 }
Exemple #7
0
    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>();
    }