Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- in Script Player.cs
- Spawner spawner = A spawner assigned in the editor(testing purpose)
- void Update()
- {
- if (Input)
- {
- spawner.StartCoroutine(SpawnNPCWave(mySpawnSpeed, mySquadSize, mySquadMember)); //this doesn't fucking work
- //neither does this
- spawner.SpawnNPCWave(mySpawnSpeed,mySquadSize,mySquadMember);
- }
- }
- in script Spawner.cs
- public IEnumerator SpawnNPCWave(float spawnSpeed,int waveSize, NPC NPCToSpawn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement