質問編集履歴
3
エラー内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -140,11 +140,69 @@
|
|
140
140
|
}
|
141
141
|
|
142
142
|
|
143
|
-
|
143
|
+
PlaterManager
|
144
|
-
|
144
|
+
//
|
145
|
+
|
146
|
+
|
147
|
+
|
145
|
-
|
148
|
+
//攻撃関数
|
146
|
-
|
149
|
+
public int Attack(EnamyManager enamy)
|
147
|
-
|
150
|
+
{
|
151
|
+
|
148
|
-
|
152
|
+
int damage = enamy.Damage(at);
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
149
|
-
|
158
|
+
return damage;
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
150
|
-
|
163
|
+
}
|
164
|
+
|
165
|
+
|
166
|
+
public int Attack2(Eanamy2 eanamy2)
|
167
|
+
{
|
168
|
+
|
169
|
+
|
170
|
+
int damage = eanamy2.Damage2(at);
|
171
|
+
|
172
|
+
|
173
|
+
return damage;
|
174
|
+
|
175
|
+
|
176
|
+
}
|
177
|
+
|
178
|
+
|
179
|
+
// ダメージ受ける関数
|
180
|
+
|
181
|
+
public int Damage(int damage)
|
182
|
+
{
|
183
|
+
hp -= damage;
|
184
|
+
Debug.Log("PlayerのHPは" + hp);
|
185
|
+
|
186
|
+
if (hp <= 0)
|
187
|
+
{
|
188
|
+
hp = 0;
|
189
|
+
}
|
190
|
+
return damage;
|
191
|
+
}
|
192
|
+
|
193
|
+
internal int Attack(Eanamy2 eanamy2)
|
194
|
+
{
|
195
|
+
throw new NotImplementedException();
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
2
エラー内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,8 +7,6 @@
|
|
7
7
|
エラー内容
|
8
8
|
MissingReferenceException: The object of type 'EnamyManager' has been destroyed but you are still trying to access it.
|
9
9
|
Your script should either check if it is null or you should not destroy the object.
|
10
|
-
BattleManager+<EndBatle>d__13.MoveNext () (at Assets/Scrips/Quest/BattleManager.cs:198)
|
11
|
-
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
|
12
10
|
|
13
11
|
|
14
12
|
|
@@ -149,3 +147,4 @@
|
|
149
147
|
|
150
148
|
|
151
149
|
|
150
|
+
|
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,13 +7,8 @@
|
|
7
7
|
エラー内容
|
8
8
|
MissingReferenceException: The object of type 'EnamyManager' has been destroyed but you are still trying to access it.
|
9
9
|
Your script should either check if it is null or you should not destroy the object.
|
10
|
-
|
10
|
+
BattleManager+<EndBatle>d__13.MoveNext () (at Assets/Scrips/Quest/BattleManager.cs:198)
|
11
|
-
|
11
|
+
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
12
|
|
18
13
|
|
19
14
|
|
@@ -149,3 +144,8 @@
|
|
149
144
|
|
150
145
|
|
151
146
|
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|