回答編集履歴
1
変数名
test
CHANGED
@@ -6,11 +6,11 @@
|
|
6
6
|
```c#
|
7
7
|
public class StateMachineExitBehaviour : StateMachineBehaviour
|
8
8
|
{
|
9
|
-
public string
|
9
|
+
public string ExitTo;
|
10
10
|
override public void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
11
11
|
{
|
12
12
|
if (キャンセル条件)
|
13
|
-
animator.Play(
|
13
|
+
animator.Play(ExitTo);
|
14
14
|
}
|
15
15
|
}
|
16
16
|
```
|