質問編集履歴
1
エラー情報の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,7 +5,11 @@
|
|
5
5
|
|
6
6
|
### 発生している問題・エラーメッセージ
|
7
7
|
2Dのターン制ゲームを作ろうと思っておりScriptableObjectを使用してEnemyを作成しました。
|
8
|
-
EnemyにステータスをつけTextに反映させる事が出来たので攻撃を実装しようとしたのですがPlayerが攻撃した際に
|
8
|
+
EnemyにステータスをつけTextに反映させる事が出来たので攻撃を実装しようとしたのですがPlayerが攻撃した際に
|
9
|
+
NullReferenceException: Object reference not set to an instance of an object
|
10
|
+
PlayerManager.Attack (EnemyStatus enemy) (at Assets/PlayerManager.cs:14)
|
11
|
+
BattleManager.Attack () (at Assets/BattleManager.cs:19)
|
12
|
+
と表示されエラーになってしまいます。
|
9
13
|
利用環境は最新のUnityです。
|
10
14
|
|
11
15
|
|