Example #1
0
 public override void deathProcedure()
 {
     Instantiate(deadCrab, transform.position, Quaternion.identity);
     FindObjectOfType <BossHealthBar>().bossEnd();
     bossManager.bossBeaten("crustacea_king", 0.9f);
     playerScript.enemiesDefeated = true;
     SaveSystem.SaveGame();
     Destroy(this.gameObject);
 }
Example #2
0
 public override void deathProcedure()
 {
     StopAllCoroutines();
     takeDamageHitBox.enabled = false;
     bossManager.bossBeaten(nameID, 1f);
     PlayerProperties.playerScript.enemiesDefeated = true;
     healthBar.bossEnd();
     SaveSystem.SaveGame();
 }
Example #3
0
 public override void deathProcedure()
 {
     StopAllCoroutines();
     bossManager.bossBeaten(nameID, 1.083f);
     PlayerProperties.playerScript.enemiesDefeated = true;
     healthBar.bossEnd();
     roomAnimator.SetTrigger("Death");
     SaveSystem.SaveGame();
 }
Example #4
0
 public override void deathProcedure()
 {
     rigidBody2D.velocity = Vector3.zero;
     bossManager.bossBeaten(nameID, 0.8f);
     animator.enabled = true;
     animator.SetTrigger("Death");
     FindObjectOfType <BossHealthBar>().bossEnd();
     this.GetComponents <AudioSource>()[1].Play();
 }
Example #5
0
 public override void deathProcedure()
 {
     rigidBody2D.velocity = Vector3.zero;
     this.gameObject.GetComponent <BoxCollider2D>().enabled = false;
     bossManager.bossBeaten(nameID, 0.8f);
     FindObjectOfType <BossHealthBar>().bossEnd();
     animator.SetTrigger("Death");
     this.GetComponents <AudioSource>()[1].Play();
     Destroy(this.gameObject, 0.75f);
     StartCoroutine(spawnWaterSplash());
 }
Example #6
0
    public override void deathProcedure()
    {
        rigidBody2D.velocity = Vector3.zero;
        this.gameObject.GetComponent <BoxCollider2D>().enabled = false;
        bossManager.bossBeaten(nameID, 1.167f);
        Invoke("spawnWaterSplash", 1.05f);

        FindObjectOfType <BossHealthBar>().bossEnd();
        animator.enabled = true;
        animator.SetTrigger("Death");
        Destroy(this.gameObject, 1.167f);
    }
Example #7
0
 public override void deathProcedure()
 {
     StopAllCoroutines();
     animator.SetTrigger("Death");
     audioSources[3].Play();
     bossHealthBar.bossEnd();
     bossManager.bossBeaten(nameID, 11f / 12f);
     playerScript.enemiesDefeated = true;
     spectralShipInstant.sink();
     SaveSystem.SaveGame();
     Destroy(this.gameObject, 1.083f);
 }
Example #8
0
 public override void deathProcedure()
 {
     StopAllCoroutines();
     takeDamageHitBox.enabled = false;
     StopAllCoroutines();
     bossManager.bossBeaten(nameID, 0.667f);
     PlayerProperties.playerScript.enemiesDefeated = true;
     healthBar.bossEnd();
     deathAudio.Play();
     animator.SetTrigger("Death");
     SaveSystem.SaveGame();
 }
Example #9
0
 public override void deathProcedure()
 {
     rigidBody2D.velocity = Vector3.zero;
     this.gameObject.GetComponent <BoxCollider2D>().enabled = false;
     playerScript.enemiesDefeated = true;
     SaveSystem.SaveGame();
     bossManager.bossBeaten(nameID, 1.083f);
     Instantiate(deadFlailGolem, transform.position, Quaternion.identity);
     flail.GetComponent <Animator>().SetTrigger("Fall");
     flail.GetComponent <CircleCollider2D>().enabled = false;
     StopAllCoroutines();
     flail.GetComponent <Rigidbody2D>().velocity = Vector3.zero;
     Destroy(this.gameObject);
     FindObjectOfType <BossHealthBar>().bossEnd();
 }
Example #10
0
 public override void deathProcedure()
 {
     StopAllCoroutines();
     takeDamageHitBox.enabled = false;
     StopAllCoroutines();
     bossManager.bossBeaten(nameID, 1.5f);
     PlayerProperties.playerScript.enemiesDefeated = true;
     healthBar.bossEnd();
     deathAudio.Play();
     if (phase == 2)
     {
         foreach (SmallBogGiant small in smallBogGiants)
         {
             small.triggerDisappear();
         }
     }
     else
     {
         animator.enabled = true;
         animator.SetTrigger("Death");
         Destroy(this.gameObject, 1.5f);
     }
     SaveSystem.SaveGame();
 }