質問編集履歴

1

スクリプトの追加

2018/10/29 05:13

投稿

uepon
uepon

スコア17

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,47 @@
7
7
 
8
8
 
9
9
  どなたか、ご教授の程、よろしくお願います。
10
+
11
+
12
+
13
+ アタッチしようとしているスクリプトですが、下記のようになります。
14
+
15
+
16
+
17
+ public class BaloonMove : MonoBehaviour
18
+
19
+ {
20
+
21
+
22
+
23
+ public Animator _animator;
24
+
25
+ void Start()
26
+
27
+ {
28
+
29
+ _animator = GetComponent<Animator>();
30
+
31
+ GlobalVariables.AnimationIdleFlag = false;
32
+
33
+ GlobalVariables.AnimationLeftFlag = false;
34
+
35
+ GlobalVariables.AnimationRightFlag = false;
36
+
37
+
38
+
39
+ _animator.SetBool("LeftFlag", false);
40
+
41
+ _animator.SetBool("IdleFlag", true);
42
+
43
+ _animator.SetBool("IdleFlag2", true);
44
+
45
+ _animator.SetBool("RightFlag", false);
46
+
47
+ _animator.SetBool("DownFlag", false);
48
+
49
+
50
+
51
+
52
+
53
+ }