質問編集履歴
1
スクリプトの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,4 +2,26 @@
|
|
2
2
|
|
3
3
|

|
4
4
|
|
5
|
-
どなたか、ご教授の程、よろしくお願います。
|
5
|
+
どなたか、ご教授の程、よろしくお願います。
|
6
|
+
|
7
|
+
アタッチしようとしているスクリプトですが、下記のようになります。
|
8
|
+
|
9
|
+
public class BaloonMove : MonoBehaviour
|
10
|
+
{
|
11
|
+
|
12
|
+
public Animator _animator;
|
13
|
+
void Start()
|
14
|
+
{
|
15
|
+
_animator = GetComponent<Animator>();
|
16
|
+
GlobalVariables.AnimationIdleFlag = false;
|
17
|
+
GlobalVariables.AnimationLeftFlag = false;
|
18
|
+
GlobalVariables.AnimationRightFlag = false;
|
19
|
+
|
20
|
+
_animator.SetBool("LeftFlag", false);
|
21
|
+
_animator.SetBool("IdleFlag", true);
|
22
|
+
_animator.SetBool("IdleFlag2", true);
|
23
|
+
_animator.SetBool("RightFlag", false);
|
24
|
+
_animator.SetBool("DownFlag", false);
|
25
|
+
|
26
|
+
|
27
|
+
}
|