回答編集履歴
1
変更点をわかりやすくしました
answer
CHANGED
@@ -4,7 +4,9 @@
|
|
4
4
|
{
|
5
5
|
|
6
6
|
timeleft -= Time.deltaTime;
|
7
|
+
|
8
|
+
// <=を>=にしてみました。
|
7
|
-
|
9
|
+
if (timeleft >= 0.0)
|
8
10
|
{
|
9
11
|
timeleft = 1.0f;
|
10
12
|
Instantiate(enemy, new Vector3(0.0f, 5.0f, 0.0f), Quaternion.identity);
|