FriedrichLP

Untitled

Jul 24th, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class EntitySpawner {
  6. public static void spawnTroop (GameObject parent) {
  7. List<EntitySolider> soliders = EntityRegistry.soliders;
  8. EntitySolider solider;
  9. if (soliders.Count > 0) {
  10. solider = new EntitySolider(SoliderType.STANDARD, "" + soliders[soliders.Count - 1].GetId() + 1, soliders[soliders.Count - 1].GetId() + 1, parent);
  11. } else {
  12. solider = new EntitySolider(SoliderType.STANDARD, "" + soliders[soliders.Count - 1].GetId() + 1, 0, parent);
  13. }
  14. EntityRegistry.soliders.Add(solider);
  15. }
  16.  
  17. public void spawnEnemie () {
  18.  
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment