Skip to content

Commit

Permalink
Correct variable name for animation controller
Browse files Browse the repository at this point in the history
  • Loading branch information
AristurtleDev authored Jul 23, 2024
1 parent 039e0c3 commit 7abc03c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/features/2d-animations/spritesheet/spritesheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ protected override void LoadContent()
.AddFrame(5, TimeSpan.FromSeconds(0.1));
});

SpriteSheetAnimation attackAnimation = _spriteSheet.GetAnimation("idle");
SpriteSheetAnimation attackAnimation = _spriteSheet.GetAnimation("attack");
//highlight-next-line
_attackAnimationController = new AnimationController(idleAnimation);
_attackAnimationController = new AnimationController(attackAnimation);
}
```

Expand Down

0 comments on commit 7abc03c

Please sign in to comment.