void Start()
 {
     currWave        = 0;
     _enemiesSpawned = 0;
     _manager        = managerObj.GetComponent <gManager>();
     _lastSpawn      = Time.time;
 }
 void Start()
 {
     _health    = GetComponent <enemyHealth>();
     _manager   = managerObject.GetComponent <gManager>();
     _waypoints = GameObject.FindGameObjectWithTag("Waypoints").transform;
     NextWaypoint();
 }
Exemplo n.º 3
0
 void MakeInstance()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Exemplo n.º 4
0
 void Start()
 {
     _health  = 0;
     _manager = GameObject.Find("GameManager").GetComponent <gManager>();
 }
Exemplo n.º 5
0
    // private UpLevel _currLvl;

    void Start()
    {
        _manager        = managerObj.GetComponent <gManager>();
        _canInstantiate = true;
    }