// Start is called before the first frame update
    void Start()
    {
        ReadDistributionFile(galaxyFolder + galaxyCPUFileSuffix);
        SetUpHSVStructures();

        cpu_particles_manager = GetComponent <CPUParticleManager>();
        if (cpu_particles_manager == null)
        {
            cpu_particles_manager = gameObject.AddComponent <CPUParticleManager>();
        }

        gpu_particles_manager = GetComponent <GPUParticleManager>();
        if (gpu_particles_manager == null)
        {
            gpu_particles_manager = gameObject.AddComponent <GPUParticleManager>();
        }
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     manager = GetComponent <CPUParticleManager>();
 }