void Start() { Counter = Time; statsManager = GetComponent <StatsManager>(); autoTowerSpawner = GetComponent <AutoTowerSpawner>(); enemySpawner = GetComponent <EnemySpawner>(); additionalLayer = GameObject.FindGameObjectWithTag("AdditionalUI"); startCoroutine = StartCoroutine(SpawnTimer()); }
void Start() { AutoSpawnButton.onClick.AddListener(KillEverything); statsManager = GetComponent <StatsManager>(); autoTowerSpawner = GetComponent <AutoTowerSpawner>(); enemySpawner = GetComponent <EnemySpawner>(); additionalLayerUI = GameObject.FindGameObjectWithTag("AdditionalUI"); additionalLayer = GameObject.FindGameObjectWithTag("Additional"); }
void Awake() { if (Application.isEditor) { DataLogger.Instance.LogStart(); } Application.runInBackground = true; Application.targetFrameRate = 60; enemySpawner = GetComponent <EnemySpawner>(); statsManager = GetComponent <StatsManager>(); autoTowerSpawner = GetComponent <AutoTowerSpawner>(); bombSpawner = GetComponent <BombSpawner>(); statsManager.enabled = true; autoTowerSpawner.enabled = true; ContinueGame(); //bombSpawner.enabled = false; }