Example #1
0
 private void Start()
 {
     nextAttack   = Time.time + attackCoolDown;
     playerHealth = player.GetComponent <Health>();
     em           = GetComponent <EnemyMove>();
 }
Example #2
0
 private void Start()
 {
     nextBorn = Time.time + bornCoolDown;
     gameManager.AddEnemy(gameObject);
     EM = GetComponent <EnemyMove>();
 }