Fix outdated C# code example for class AnimationNodeOneShot

(cherry picked from commit 5142b5d23c)
This commit is contained in:
unknown 2023-05-31 18:04:29 +03:00 committed by Yuri Sizov
parent d7e50811bc
commit a07cfcc09e
1 changed files with 2 additions and 2 deletions

View File

@ -25,10 +25,10 @@
[/gdscript] [/gdscript]
[csharp] [csharp]
// Play child animation connected to "shot" port. // 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. // 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). // Get current state (read-only).
animationTree.Get("parameters/OneShot/active"); animationTree.Get("parameters/OneShot/active");