質問編集履歴

1

情報不足だったためソースコードを追加しました。

2020/03/05 08:14

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -125,3 +125,73 @@
125
125
  Editor
126
126
 
127
127
  ```
128
+
129
+ ```using System;
130
+
131
+ using System.Collections;
132
+
133
+ using System.Collections.Generic;
134
+
135
+ using System.IO;
136
+
137
+ using System.Reflection;
138
+
139
+ using UnityEngine;
140
+
141
+ using UnityEngine.Events;
142
+
143
+
144
+
145
+
146
+
147
+ public class BossInfo : MonoBehaviour
148
+
149
+ {
150
+
151
+ [SerializeField, Tooltip("体力/現在値")]
152
+
153
+ private float m_hp;
154
+
155
+ [SerializeField, Tooltip("体力/最大値")]
156
+
157
+ private float m_hp_max;
158
+
159
+ [SerializeField, Tooltip("ウェーブ数")]
160
+
161
+ private int m_wave;
162
+
163
+ public enum ATTACK
164
+
165
+ {
166
+
167
+ RollingShot,
168
+
169
+ RandomShot,
170
+
171
+ HomingShot,
172
+
173
+ SpecialShot,
174
+
175
+ RoundShot,
176
+
177
+
178
+
179
+ }
180
+
181
+
182
+
183
+ public ATTACK attack;
184
+
185
+ public float hp { get { return m_hp; } set { m_hp = value; } }
186
+
187
+ public float max_hp { get { return m_hp_max; } set { m_hp_max = value; } }
188
+
189
+ public int wave { get {return m_wave; } set { m_wave = value; } }
190
+
191
+
192
+
193
+ }
194
+
195
+ BossInfo
196
+
197
+ ```