mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
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:
@@ -101,7 +101,7 @@ released.
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_animatedSprite = GetNode<AnimatedSprite>("AnimatedSprite");
|
||||
_animatedSprite = GetNode<AnimatedSprite2D>("AnimatedSprite2D");
|
||||
}
|
||||
|
||||
public override _Process(float _delta)
|
||||
|
||||
Reference in New Issue
Block a user