private void Start() { _zombieFactories.ForEach(x => x.CreateFactory(_zombiesLair)); _bloodstainFactory = new ReusableFactory <ReusableGameObject>(_bloodstainPrefab, _bloodstainLair); for (int i = 0; i < _maxZombiesCount; i++) { _instantiateZombie(); } TimeStartPlay = Time.time; }
private void Awake() { _bulletsFactory = new ReusableFactory <Bullet>(_prefabBullet, _bulletsLair); }
public void CreateFactory(Transform lair) { _zombiesFactory = new ReusableFactory <ZombieBehaviour>(_behaviour, lair); }