示例#1
0
    public override void Update(GameTime gameTime)
    {
        // smoothly move to the target position
        Vector2 diff = TargetPosition - LocalPosition;

        velocity = diff * 8;

        base.Update(gameTime);

        // update the glitter field
        glitters.Update(gameTime);
    }
示例#2
0
 public override void Update(GameTime gameTime)
 {
     base.Update(gameTime);
     glitters.Update(gameTime);
 }