Exemple #1
0
 void Start()
 {
     _statManager = GameObject.Find("StatManager").GetComponent <StatsManager>();
     _spawnWait   = 1f;
     EnemiesCount = 5;
     if (_defend)
     {
         StartCoroutine(SpawnWawes(0));
     }
     _sPoints                   = 20;
     _arrowCounter              = 1;
     _spawnDefender             = 0;
     _points                    = 0;
     _wave                      = 1;
     _crossbowHitPoints         = GameObject.Find("crossbow").GetComponent <StatsController>();
     _currentThresholdHitPoints = 80;
 }
Exemple #2
0
 private void Start()
 {
     Inst = this;
 }