public void SpawnEnemy(Vector3 position, DiscType lootedDiscType) { if (spawned) { return; } spawned = true; damageReceiptionSystem.SetUpSystem(false); transform.position = position; gameObject.SetActive(true); SetUpInitiative(); _lootedDiscType = lootedDiscType; if (_lootedDiscType != DiscType.None) { Debug.Log(name + " will loot " + _lootedDiscType + " disc"); } if (lootDiscIndicator != null) { lootDiscIndicator.SetActive(_lootedDiscType != DiscType.None); } InitLifeBar(damageReceiptionSystem.GetCurrentLifeAmount); tooltipCollider.SetValueInInfos(damageReceiptionSystem.GetCurrentLifeAmount); enemyAnimator.SetBool("Dead", false); }