Selaa lähdekoodia

Update animation_tree.rst to reflect One Shot's C# enums not being li… (#7391)

John Doughty 2 vuotta sitten
vanhempi
commit
199dc1ddb0
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      tutorials/animation/animation_tree.rst

+ 2 - 2
tutorials/animation/animation_tree.rst

@@ -116,10 +116,10 @@ After setting the request and changing the animation playback, the one-shot node
  .. code-tab:: csharp
 
     // Play child animation connected to "shot" port.
-    animationTree.Set("parameters/OneShot/request", AnimationNodeOneShot.ONE_SHOT_REQUEST_FIRE);
+    animationTree.Set("parameters/OneShot/request", (int)AnimationNodeOneShot.OneShotRequest.Fire);
 
     // Abort child animation connected to "shot" port.
-    animationTree.Set("parameters/OneShot/request", AnimationNodeOneShot.ONE_SHOT_REQUEST_ABORT);
+    animationTree.Set("parameters/OneShot/request", (int)AnimationNodeOneShot.OneShotRequest.Abort);
 
     // Get current state (read-only).
     animationTree.Get("parameters/OneShot/active");