Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Enemy spawning?

Discussion in 'Scripting' started by ecloev, Oct 5, 2015.

  1. ecloev

    ecloev

    Joined:
    Oct 1, 2015
    Posts:
    101
    Hello,
    I have enemies that i need to have spawn in a way idk how to do and was looking for help.
    So basically, i have an enemy prefab and i need to put spawn points around my map that will spawn these prefabs in every 20 seconds. How can i do this using C#?

    Thanks
     
  2. Duugu

    Duugu

    Joined:
    May 23, 2015
    Posts:
    241
    This tutorial shows how to instantiate new gameobjects using a prefab.