Example #1
0
 void Start()
 {
     Counter          = Time;
     statsManager     = GetComponent <StatsManager>();
     autoTowerSpawner = GetComponent <AutoTowerSpawner>();
     enemySpawner     = GetComponent <EnemySpawner>();
     additionalLayer  = GameObject.FindGameObjectWithTag("AdditionalUI");
     startCoroutine   = StartCoroutine(SpawnTimer());
 }
Example #2
0
 void Start()
 {
     AutoSpawnButton.onClick.AddListener(KillEverything);
     statsManager      = GetComponent <StatsManager>();
     autoTowerSpawner  = GetComponent <AutoTowerSpawner>();
     enemySpawner      = GetComponent <EnemySpawner>();
     additionalLayerUI = GameObject.FindGameObjectWithTag("AdditionalUI");
     additionalLayer   = GameObject.FindGameObjectWithTag("Additional");
 }
Example #3
0
    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;
    }