فهرست منبع

Fix outdated C# code example for class AnimationNodeOneShot

unknown 2 سال پیش
والد
کامیت
5142b5d23c
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      doc/classes/AnimationNodeOneShot.xml

+ 3 - 3
doc/classes/AnimationNodeOneShot.xml

@@ -35,13 +35,13 @@
 		[/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);
 
 		// Abort child animation with fading out connected to "shot" port.
-		animationTree.Set("parameters/OneShot/request", AnimationNodeOneShot.ONE_SHOT_REQUEST_FADE_OUT);
+		animationTree.Set("parameters/OneShot/request", (int)AnimationNodeOneShot.OneShotRequest.FadeOut);
 
 		// Get current state (read-only).
 		animationTree.Get("parameters/OneShot/active");