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