回答編集履歴
2
再度修正
test
CHANGED
@@ -84,6 +84,10 @@
|
|
84
84
|
|
85
85
|
move = false;
|
86
86
|
|
87
|
+
savex = 0;
|
88
|
+
|
89
|
+
savey = 0;
|
90
|
+
|
87
91
|
}
|
88
92
|
|
89
93
|
}
|
1
修正
test
CHANGED
@@ -20,11 +20,13 @@
|
|
20
20
|
|
21
21
|
float savey = 0;
|
22
22
|
|
23
|
+
bool n = savex == 0 || savey == 0;
|
24
|
+
|
23
25
|
void Update()
|
24
26
|
|
25
27
|
{
|
26
28
|
|
27
|
-
if (
|
29
|
+
if (n && move == false) //他の入力などのifの条件には全てmove == falseをつける
|
28
30
|
|
29
31
|
{
|
30
32
|
|