private new void Start() { enemyData = GetComponent <EnemyData>(); audioSource = GetComponent <AudioSource>(); diedSoundFX = enemyData.GetDiedSoundFX(); initialHp = enemyData.GetInitialHealth(); controller = GetComponent <EnemyControllerTest>(); isBullseye = GetComponent <TargetController>() ? true : false; hasEffectOnDeath = enemyData.HasOnDeathEffect(); InitializeHealthBar(); base.Start(); }
private new void Start() { enemyData = GetComponent <EnemyData>(); audioSource = GetComponent <AudioSource>(); diedSoundFX = enemyData.GetDiedSoundFX(); initialHp = enemyData.GetInitialHealth(); controller = GetComponent <EnemyController>(); isBullseye = GetComponent <TargetController>() ? true : false; hasEffectOnDeath = enemyData.HasOnDeathEffect(); InitializeHealthBar(); base.Start(); AfterDeathOptions.instance.OnTryAgainNow += EnableVariables; }