void Start() { SetupEnemy(); playerType = GetComponentInChildren <AttackController>().playerType; updateUI.SetMaxHealth(GameController.GetHealth(playerType)); if (autoAttack) { StartCoroutine(StartAttacking()); } }
void Start() { playerType = GetComponentInChildren <AttackController>().playerType; updateUI.SetMaxHealth(GameController.GetHealth(playerType)); }