public void SetParticleConfig(ParticleConfig config)
 {
     MaxParticles = config.m_MaxParticles;
     Lifespan = config.m_Lifespan * 1000;
     StartSize = config.m_StartSize;
     StartSizeVariance = config.m_StartSizeVariance;
     EndSize = config.m_EndSize;
     EndSizeVariance = config.m_EndSizeVariance;
     EmitterAngle = config.m_EmitterAngle;
     EmitterAngleVariance = config.m_EmitterAngleVariance;
     StartRotation = config.m_StartRotation;
     StartRotationVariance = config.m_StartRotationVariance;
     EndRotation = config.m_EndRotation;
     EndRotationVariance = config.m_EndRotationVariance;
 }
        public ParticleConfig GetParticleConfig()
        {
            ParticleConfig config = new ParticleConfig();
            config.m_MaxParticles = m_MaxParticles;
            config.m_Lifespan = m_Lifespan / 1000;
            config.m_StartSize = m_StartSize;
            config.m_StartSizeVariance = m_StartSizeVariance;
            config.m_EndSize = m_EndSize;
            config.m_EndSizeVariance = m_EndSizeVariance;
            config.m_EmitterAngle = m_EmitterAngle;
            config.m_EmitterAngleVariance = m_EmitterAngleVariance;
            config.m_StartRotation = m_StartRotation;
            config.m_StartRotationVariance = m_StartRotationVariance;
            config.m_EndRotation = m_EndRotation;
            config.m_EndRotationVariance = m_EndRotationVariance;

            return config;
        }