public override void UpdateEmitterGroup(GameTime time, EmitterGroup group)
        {
            MouseState state = Mouse.GetState();

            group.Position.X = (float)state.X;
            group.Position.Y = (float)state.Y;

            if (_click)
            {
                if (state.LeftButton == ButtonState.Pressed)
                {
                    group.Trigger();
                }
            }
        }
Esempio n. 2
0
 //======================================================[ Constructors & Methods ]
 public virtual void UpdateEmitterGroup(GameTime time, EmitterGroup group) { }