public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem)
    {
        var spawnerData = new FixedRateSpawner
        {
            Prefab = conversionSystem.GetPrimaryEntity(projectilePrefab),
        };

        dstManager.AddComponentData(entity, spawnerData);
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     spawner = GetComponentInParent <FixedRateSpawner>();
 }