Enemies randomly appearing behind objects

Hello i’m new to unity so if i say something dumb please forgive me. I’m making a game for my class and i need to make the enemies appear randomly behind specific objects, to shoot at them. But i can’t find the right way to do it. Can somebody help me out with this?

  • Create GameObject in your scene that will act as spawn points.
  • Reference those transforms in some list or so and whenever you want to spwan an enemy, spawn it on a transform that is empty.