瀏覽代碼

Fix outdated C# code example for class AnimationNodeOneShot

(cherry picked from commit 5142b5d23cfa9bd1a8663a13e5ec3bf4fb3657cb)
unknown 2 年之前
父節點
當前提交
a07cfcc09e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      doc/classes/AnimationNodeOneShot.xml

+ 2 - 2
doc/classes/AnimationNodeOneShot.xml

@@ -25,10 +25,10 @@
 		[/gdscript]
 		[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");