コード例 #1
0
        private void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            else
            {
                Destroy(gameObject);
            }
            _enemyBuffWave = GetComponent <EnemyBuffWave>();
            _initSize      = waves.Count;
            int col = _enemyGrid.Columns;

            for (int i = 1; i < replyCountWaves; i++)
            {
                waves.AddRange(waves);
            }
            towerGridsTowerCells = new List <EnemyCell>();
            previewEnemyCells    = new List <EnemyCell>();
            towerGridsTowerCells.AddRange(_enemyGrid.CreateGrid());
            previewEnemyCells.AddRange(enemyPreviewGrid.CreateGrid());
        }