Update C# code example to fix an error
Update doc/classes/AnimationNodeStateMachinePlayback.xml Co-authored-by: Raul Santos <raulsntos@gmail.com>
This commit is contained in:
parent
621d68e412
commit
cb7fdad3b4
@ -12,7 +12,7 @@
|
|||||||
state_machine.travel("some_state")
|
state_machine.travel("some_state")
|
||||||
[/gdscript]
|
[/gdscript]
|
||||||
[csharp]
|
[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");
|
stateMachine.Travel("some_state");
|
||||||
[/csharp]
|
[/csharp]
|
||||||
[/codeblocks]
|
[/codeblocks]
|
||||||
|
Loading…
Reference in New Issue
Block a user