Update 2d_sprite_animation.rst

Corrected the C# code from the example in the 'Controlling the animation' section, fixing the class name used by the generic method GetNode<T>(), as well as the string parameter.

(cherry picked from commit 4c6e4e7d1e)
This commit is contained in:
C. Peña
2024-05-03 15:21:24 -06:00
committed by Max Hilbrunner
parent 4aafc5ac67
commit e2a8bd7d07

View File

@@ -101,7 +101,7 @@ released.
public override void _Ready()
{
_animatedSprite = GetNode<AnimatedSprite>("AnimatedSprite");
_animatedSprite = GetNode<AnimatedSprite2D>("AnimatedSprite2D");
}
public override _Process(float _delta)