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.

Question Instaniate Spawn not working

Discussion in 'Multiplayer' started by SadisticLotus, Nov 8, 2022.

  1. SadisticLotus

    SadisticLotus

    Joined:
    Oct 8, 2019
    Posts:
    24
    upload_2022-11-8_19-42-1.png
    Hey guys,
    The code provided in the picture get triggerd 5 times, i know this cause of debugging.
    For some reason it only spawns one enemie tho and im not sure why cause it was working before.
    enemiesToSpawn is an scriptable object and the enemyObject is the prefab the prefab is loaded into the networkmanager.

    I get no errors whatsoever.
     
  2. SadisticLotus

    SadisticLotus

    Joined:
    Oct 8, 2019
    Posts:
    24
    woeps, seems like it tried to dupplicate a class it wasn't supposed too!
    After this it working again....