Ejemplo n.º 1
0
 public void Die()
 {
     CombatEvents.EnemyDied(this);
     DropLoot();
     this.Spawner.ReSpawn();
     Destroy(gameObject);
 }
Ejemplo n.º 2
0
 public void Die()
 {
     DropLoot();
     CombatEvents.EnemyDied(this);
     this.MonsterSpawner.RespawnMonster();
     Destroy(gameObject);
 }
Ejemplo n.º 3
0
 public override void Die()
 {
     DropLoot();
     CombatEvents.EnemyDied(this);
     Spawner.Respawn();
     DestroySelf();
 }
Ejemplo n.º 4
0
 public void Die()
 {
     DropLoot();
     CombatEvents.EnemyDied(this); /* This instance of the object. */
     this.Spawner.Respawn();
     Destroy(gameObject);
 }
Ejemplo n.º 5
0
 public void Die()
 {
     box_particles.SpawnParticle(transform);
     CombatEvents.EnemyDied(this);
     Debug.Log("killed box");
     gameObject.SetActive(false);
 }
Ejemplo n.º 6
0
 public void Die()
 {
     //DropLoot();
     CombatEvents.EnemyDied(this);
     //animator.SetTrigger("Death");
     //this.Spawner.Respawn();
     Destroy(gameObject);
 }
Ejemplo n.º 7
0
 public void Die()
 {
     CombatEvents.EnemyDied(this);
     if (!SaveEnemy)
     {
         collectedItemSet.CollectedItems.Add(GetComponent <UniqueID>().ID);
     }
     isDead = true;
     animator.SetTrigger("Dead");
 }
Ejemplo n.º 8
0
 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;
 }
Ejemplo n.º 9
0
 public void Die()
 {
     DropLoot();
     CombatEvents.EnemyDied(this);
     if (this.spawner != null)
     {
         this.spawner.Respawn();
     }
     Destroy(gameObject);
 }
Ejemplo n.º 10
0
    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);
    }
Ejemplo n.º 12
0
 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());
 }
Ejemplo n.º 13
0
    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);
        }
    }
Ejemplo n.º 14
0
 public void Dead()
 {
     CombatEvents.EnemyDied(this);
     lootTable.DropItem();
     Destroy(gameObject);
 }
Ejemplo n.º 15
0
 public void Kill()
 {
     CombatEvents.EnemyDied(this);
     isAlive = false;
 }
 public void Die()
 {
     CombatEvents.EnemyDied(this);
     Debug.Log("Slime Died");
 }
Ejemplo n.º 17
0
 public void Die()
 {
     CombatEvents.EnemyDied(this);
     Debug.Log("killed Boss");
     //gameObject.SetActive(false);
 }
Ejemplo n.º 18
0
 /*
  * 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);
 }