Пример #1
0
 private void InvokeWave()
 {
     if (currentShield != null)
     {
         enemyHealthManager.SetAbsorption(0);
         Destroy(currentShield.gameObject);
     }
     if (invokesDone < invokes)
     {
         invokeSkeletons.Invoke(4 + (invokesDone * 2));
     }
     invokesDone++;
 }
Пример #2
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>();
 }