Merge pull request #74595 from AurumKitsune/patch-1
Update C# code example to fix an error
This commit is contained in:
commit
2a50f8c107
@ -12,7 +12,7 @@
|
||||
state_machine.travel("some_state")
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
var stateMachine = GetNode<AnimationTree>("AnimationTree").Get("parameters/playback") as AnimationNodeStateMachinePlayback;
|
||||
var stateMachine = GetNode<AnimationTree>("AnimationTree").Get("parameters/playback").As<AnimationNodeStateMachinePlayback>();
|
||||
stateMachine.Travel("some_state");
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
|
Loading…
Reference in New Issue
Block a user