Exemple #1
0
        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;
            }
        }
Exemple #2
0
 public virtual void ShowDeathAnimation(DeathEnemyType type)
 {
     GameManager.S_Instance.ShowDeathAnimation(type, this.transform.position);
 }