// Start is called before the first frame update void Start() { isAgro = false; gamePlayerSystem = FindObjectOfType <GameScrollScript>(); //gamePlayer = gamePlayerSystem.gamePlayer; hp = hpSettings[gamePlayerSystem.difficultyLevel]; }
// Start is called before the first frame update void Start() { if (movePosition != null && baseBody != null) { movingEnemy = true; } isAgro = false; gamePlayerSystem = FindObjectOfType <GameScrollScript>(); currentTarget = gamePlayerSystem.gamePlayers[Random.Range(0, gamePlayerSystem.gamePlayers.Count)]; hp = hpSettings[gamePlayerSystem.difficultyLevel]; }