public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem) { var spawnerData = new FixedRateSpawner { Prefab = conversionSystem.GetPrimaryEntity(projectilePrefab), }; dstManager.AddComponentData(entity, spawnerData); }
// Use this for initialization void Start() { spawner = GetComponentInParent <FixedRateSpawner>(); }