Missing ParticleEmitter instance?

When trying to change the ParticleEmitter Settings, i get the error

  • Assets/Scripts/ParticleSystem.js(11,18): BCE0020: An instance of type 'UnityEngine.ParticleEmitter' is required to access non static member 'maxEmission'.

How do i fix this?

'instance' means you need to have an actual object to set on. My guess is you set ParticleEmitter.maxEmission (note the capital), rather than particleEmitter.maxEmission where particleEmitter (small p) is a component on a game object. I prefer using different variable names (like 'pe' or 'partEmitr') which can't be confused thus.