質問編集履歴
2
追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -44,6 +44,8 @@
|
|
44
44
|
|
45
45
|
```C#
|
46
46
|
|
47
|
+
//public class Departure : MonoBehaviour
|
48
|
+
|
47
49
|
IEnumerator Start()
|
48
50
|
|
49
51
|
{
|
@@ -102,6 +104,8 @@
|
|
102
104
|
|
103
105
|
```C#
|
104
106
|
|
107
|
+
//public class Enemy_3 : MonoBehaviour
|
108
|
+
|
105
109
|
public Sequence AttackSequence(GameObject eN,Vector3 aP, bool Go)
|
106
110
|
|
107
111
|
{
|
@@ -162,7 +166,7 @@
|
|
162
166
|
|
163
167
|
```C#
|
164
168
|
|
165
|
-
|
169
|
+
//public class ShotScript : MonoBehaviour
|
166
170
|
|
167
171
|
// 弾のPrefab
|
168
172
|
|
1
追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -162,6 +162,26 @@
|
|
162
162
|
|
163
163
|
```C#
|
164
164
|
|
165
|
+
|
166
|
+
|
167
|
+
// 弾のPrefab
|
168
|
+
|
169
|
+
public GameObject bullet;
|
170
|
+
|
171
|
+
// 弾を撃つ間隔
|
172
|
+
|
173
|
+
public float shotDelay;
|
174
|
+
|
175
|
+
// 弾を撃つかどうか
|
176
|
+
|
177
|
+
public bool canShot;
|
178
|
+
|
179
|
+
//Update()関数で毎フレーム実行されるのを防ぐため
|
180
|
+
|
181
|
+
bool isKeepShot = false;
|
182
|
+
|
183
|
+
|
184
|
+
|
165
185
|
private void Update()
|
166
186
|
|
167
187
|
{
|