public void ShowDeathAnimation(DeathEnemyType type, Vector3 position) { switch (type) { case DeathEnemyType.FIRE: ObjectPool.Spawn(deathEnemy, position).GetComponent <Animator>().Play(Consts.ANIMATION_ENEMY_DEATH_FIRE); break; case DeathEnemyType.SIMPLE: ObjectPool.Spawn(deathEnemy, position).GetComponent <Animator>().Play(Consts.ANIMATION_ENEMY_DEATH_SIMPLE); break; } }
public virtual void ShowDeathAnimation(DeathEnemyType type) { GameManager.S_Instance.ShowDeathAnimation(type, this.transform.position); }