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();
 }
示例#2
0
 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;
 }