Search Unity

Question Instaniate Spawn not working

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

  1. SadisticLotus

    SadisticLotus

    Joined:
    Oct 8, 2019
    Posts:
    25
    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:
    25
    woeps, seems like it tried to dupplicate a class it wasn't supposed too!
    After this it working again....