void Start()
    {
        m_ParticleSystem = p_EmitterType == EmitterType.Radial ? m_ParticleSystem = new Burst() :
                           p_EmitterType == EmitterType.Emitter ? m_ParticleSystem = new Emitter() :
                           p_EmitterType == EmitterType.Trail ? m_ParticleSystem = new Trail() :
                           null;

        m_ParticleSystem.Position = transform.position;
        SetProperties();
        m_ParticleSystem.Initialize();
    }
Esempio n. 2
0
    void Start()
    {
        m_ParticleSystem = p_EmitterType == EmitterType.Radial ? m_ParticleSystem = new Burst() :
                                                                                    p_EmitterType == EmitterType.Emitter ? m_ParticleSystem = new Emitter() :
                                                                                                                                              p_EmitterType == EmitterType.Trail ? m_ParticleSystem = new Trail() :
                                                                                                                                                                                                      null;

        m_ParticleSystem.Position = transform.position;
        SetProperties();
        m_ParticleSystem.Initialize();
    }