Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. in Script Player.cs
  2. Spawner spawner = A spawner assigned in the editor(testing purpose)
  3.  
  4.  
  5. void Update()
  6. {
  7.  
  8. if (Input)
  9. {
  10. spawner.StartCoroutine(SpawnNPCWave(mySpawnSpeed, mySquadSize, mySquadMember)); //this doesn't fucking work
  11. //neither does this
  12. spawner.SpawnNPCWave(mySpawnSpeed,mySquadSize,mySquadMember);
  13. }
  14.  
  15.  
  16.  
  17. }
  18.  
  19.  
  20. in script Spawner.cs
  21. public IEnumerator SpawnNPCWave(float spawnSpeed,int waveSize, NPC NPCToSpawn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement