質問編集履歴
1
20と5のIf文の場所を交代
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,17 +42,21 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
if (direction.magnitude <
|
45
|
+
if (direction.magnitude < 5)
|
46
46
|
|
47
47
|
{
|
48
48
|
|
49
|
-
|
50
|
-
|
51
|
-
anim.SetBool("is
|
49
|
+
anim.SetBool("isAttacking", true);
|
52
50
|
|
53
51
|
anim.SetBool("isWalking", false);
|
54
52
|
|
55
|
-
anim.SetBool("is
|
53
|
+
anim.SetBool("isIdole", false);
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
56
60
|
|
57
61
|
|
58
62
|
|
@@ -72,15 +76,17 @@
|
|
72
76
|
|
73
77
|
}
|
74
78
|
|
75
|
-
else if (direction.magnitude <
|
79
|
+
else if (direction.magnitude < 20)
|
76
80
|
|
77
81
|
{
|
78
82
|
|
83
|
+
|
84
|
+
|
79
|
-
anim.SetBool("is
|
85
|
+
anim.SetBool("isIdle", true);
|
80
86
|
|
81
87
|
anim.SetBool("isWalking", false);
|
82
88
|
|
83
|
-
anim.SetBool("is
|
89
|
+
anim.SetBool("isAttacking", false);
|
84
90
|
|
85
91
|
}
|
86
92
|
|
@@ -90,7 +96,7 @@
|
|
90
96
|
|
91
97
|
GotoNextPoint();
|
92
98
|
|
93
|
-
}
|
99
|
+
}
|
94
100
|
|
95
101
|
}
|
96
102
|
|