Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Thanks for your answer. I think I have found a way to create the problem in a similar way my code do.

  1. Open your Demo_Scene
  2. Press Play, there is 3 bullet manager that are spawning
  3. Disable the component TestWeapon.cs on one of them
  4. Enable it again, the concerned bullet manager does not start spawning again.

Is it a normal behaviour. Apparently in TestWeapon, you just call the Spawn func in Update ( like I do with my code). So It should start spawning again after reactivation, no ?

Thanks in advance for your reply. Maybe I’m missing something in my comprehension ;)

This is interesting - that doesn't happen for me! What version of Unity are you using

Unity 2020.3.18f1

(1 edit) (+1)

I've just sent an update, can you try redownloading and reimporting it for me please?

Yeah ! thanks !! It fixes the issue descrived ! You’re the boss :)

I speak a bit too quickly :) I have another problem whe numside is 2 ( the manager only spawn one in this case) I see in my git, that you added a special case whith if numside == 2 , so maybe it breaks something else ?

Show me the spawn settings?

Starting from your demo scene, just switch NumSides to 2 The Manager only send 1 side bullet

Ah, it looks like that is because numPerSide is 1 - it's going to do exactly numPerSide bullets!

Sorry I don’t understand your reply ;) I think it’s a bug : How can I have a spawning with one bullet north and one bullet south for example ? I though the config in my screen should work for that. It works very well with NumSides = 1, 3 ,4, etc. But not with 2 ( And I see in the code, a special case with NumSides = 2)

Another dev has the same problem. When we switch numside from 3 to 2, we loose not one bullet direction spawning but 2.

In my case, changing Num Per Side does’t affect that.

Sorry to take you so much times, and once again, thanks for your next reply ;)

numsides = 2 acts like a horizontal line. You will get numPerSide bullets in that line. They'll all move in the same direction.

If you prefer the old way of doing it, just remove the if (numSides == 2) case 😅