Explorar o código

Update your_first_game.rst (#3603)

* Update C# code in your_first_game.rst
robertsonb93 %!s(int64=5) %!d(string=hai) anos
pai
achega
d2614dca05
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      getting_started/step_by_step/your_first_game.rst

+ 1 - 0
getting_started/step_by_step/your_first_game.rst

@@ -629,6 +629,7 @@ choose one of the three animation types:
 
     public override void _Ready()
     {
+        var _mobTypes = GetNode<AnimatedSprite>("AnimatedSprite").Frames.GetAnimationNames();
         GetNode<AnimatedSprite>("AnimatedSprite").Animation = _mobTypes[_random.Next(0, _mobTypes.Length)];
     }