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(); }
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(); }