質問編集履歴
1
参照先のEnemyDataクラスを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -59,3 +59,35 @@
|
|
59
59
|
}
|
60
60
|
|
61
61
|
```
|
62
|
+
|
63
|
+
下は参照先のEnemyDataクラスです。
|
64
|
+
|
65
|
+
```C#
|
66
|
+
|
67
|
+
using System.Collections;
|
68
|
+
|
69
|
+
using System.Collections.Generic;
|
70
|
+
|
71
|
+
using UnityEngine;
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
[CreateAssetMenu(menuName = "MyScriptable/Create EnemyData")]
|
76
|
+
|
77
|
+
public class EnemyData : ScriptableObject {
|
78
|
+
|
79
|
+
public string enemyName;
|
80
|
+
|
81
|
+
public int maxHp;
|
82
|
+
|
83
|
+
public int atk;
|
84
|
+
|
85
|
+
public int def;
|
86
|
+
|
87
|
+
public int exp;
|
88
|
+
|
89
|
+
public int gold;
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
```
|