Hello, I need this alone, does anyone know how to instantiate an object at random from a list? in this case, when the enemy dies, it becomes one of several objects on a list, thank you!
void Die ()
{
//there are more objects up but one is assigned
Instantiate (DeathObject, EnemyObject.position, EnemyObject.rotation);
Destroy(EnemyGameObject);
}
}