Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class EntitySpawner {
- public static void spawnTroop (GameObject parent) {
- List<EntitySolider> soliders = EntityRegistry.soliders;
- EntitySolider solider;
- if (soliders.Count > 0) {
- solider = new EntitySolider(SoliderType.STANDARD, "" + soliders[soliders.Count - 1].GetId() + 1, soliders[soliders.Count - 1].GetId() + 1, parent);
- } else {
- solider = new EntitySolider(SoliderType.STANDARD, "" + soliders[soliders.Count - 1].GetId() + 1, 0, parent);
- }
- EntityRegistry.soliders.Add(solider);
- }
- public void spawnEnemie () {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment