public void Die() { CombatEvents.EnemyDied(this); DropLoot(); this.Spawner.ReSpawn(); Destroy(gameObject); }
public void Die() { DropLoot(); CombatEvents.EnemyDied(this); this.MonsterSpawner.RespawnMonster(); Destroy(gameObject); }
public override void Die() { DropLoot(); CombatEvents.EnemyDied(this); Spawner.Respawn(); DestroySelf(); }
public void Die() { DropLoot(); CombatEvents.EnemyDied(this); /* This instance of the object. */ this.Spawner.Respawn(); Destroy(gameObject); }
public void Die() { box_particles.SpawnParticle(transform); CombatEvents.EnemyDied(this); Debug.Log("killed box"); gameObject.SetActive(false); }
public void Die() { //DropLoot(); CombatEvents.EnemyDied(this); //animator.SetTrigger("Death"); //this.Spawner.Respawn(); Destroy(gameObject); }
public void Die() { CombatEvents.EnemyDied(this); if (!SaveEnemy) { collectedItemSet.CollectedItems.Add(GetComponent <UniqueID>().ID); } isDead = true; animator.SetTrigger("Dead"); }
public void Die() { CombatEvents.EnemyDied(this); Debug.Log("killed Boss"); //gameObject.SetActive(false); GameManager.manager.bossBattle = false; GameManager.manager.bossAppearDist = GameManager.manager.distanceMoved + 300; GameManager.manager.spawned_checkpoint = false; GameManager.manager.passed_checkpoint = false; }
public void Die() { DropLoot(); CombatEvents.EnemyDied(this); if (this.spawner != null) { this.spawner.Respawn(); } Destroy(gameObject); }
public void Die() { DropLoot(); CombatEvents.EnemyDied(this); this.Spawner.Respawn(); skeletonAnimator.SetBool("isDead", true); Destroy(gameObject); }
public void Die() { for (int i = 0; i < BodyParts.Count; i++) { BodyParts[i].Stop(); } rb.isKinematic = false; CombatEvents.EnemyDied(this); collectedItemSet.CollectedItems.Add(GetComponent <UniqueID>().ID); Destroy(gameObject, 5); }
public void Die() { CombatEvents.EnemyDied(this); HealthBarObject.SetActive(false); FadeOut.alpha = 0; GameDonePanel.SetActive(true); Time.timeScale = 0.5f; GabrielsSystemManager.gabie.PauseCharacter(); anime.speed = 0; AudioManager.Instance.ChangeSong(2, 0.2f); StartCoroutine(DoFade()); }
public void OnDestroy() { Vector3 newX = transform.position; newX.x = transform.position.x; CombatEvents.EnemyDied(this); for (int i = (Random.Range(0, 3)); i < 3; i++) { Instantiate(XP, newX, transform.rotation); newX.x = newX.x + 0.2f; } if (Random.Range(0f, 1f) < spawnRate) { Instantiate(potion, transform.position, transform.rotation); } }
public void Dead() { CombatEvents.EnemyDied(this); lootTable.DropItem(); Destroy(gameObject); }
public void Kill() { CombatEvents.EnemyDied(this); isAlive = false; }
public void Die() { CombatEvents.EnemyDied(this); Debug.Log("Slime Died"); }
public void Die() { CombatEvents.EnemyDied(this); Debug.Log("killed Boss"); //gameObject.SetActive(false); }
/* * public void Take_Dmg(float dmg_amt) * { * health -= dmg_amt; * if(health <= 0) * { * CombatEvents.EnemyDied(this); * gameObject.SetActive(false); * } * } */ public void Die() { CombatEvents.EnemyDied(this); Debug.Log("killed generic enemy"); gameObject.SetActive(false); }