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); }
public override void deathProcedure() { StopAllCoroutines(); takeDamageHitBox.enabled = false; bossManager.bossBeaten(nameID, 1f); PlayerProperties.playerScript.enemiesDefeated = true; healthBar.bossEnd(); SaveSystem.SaveGame(); }
public override void deathProcedure() { StopAllCoroutines(); bossManager.bossBeaten(nameID, 1.083f); PlayerProperties.playerScript.enemiesDefeated = true; healthBar.bossEnd(); roomAnimator.SetTrigger("Death"); SaveSystem.SaveGame(); }
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(); }
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()); }
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); }
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); }
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(); }
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(); }
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(); }