Beispiel #1
0
 private void Start()
 {
     invokeSkeletons                 = GetComponent <InvokeSkeletons>();
     invokeSkeletons.OnWaveStart    += InvokeShield;
     invokeSkeletons.OnWaveFinished += InvokeWave;
     animationManager                = GetComponent <NecromancerAnimationManager>();
     enemyHealthManager              = GetComponent <EnemyHealthManager>();
     enemyHealthManager.SetAbsorption(10000);
     enemyHealthManager.OnHit += Trigger;
     rb = GetComponent <Rigidbody2D>();
 }
 private void Start()
 {
     enemyHealthManager = GetComponent <EnemyHealthManager>();
 }
 private void Awake()
 {
     EnemyHealthManager = GetComponent <EnemyHealthManager>();
     EnemyBehavior      = GetComponent <EnemyBehavior>();
     Rigidbody2D        = GetComponent <Rigidbody2D>();
 }