Commit db71c493 authored by 문경훈's avatar 문경훈

WIP - HPSlider Implemented (Not applied to bosses)

parent 2040137e
Pipeline #533 skipped
This diff is collapsed.
fileFormatVersion: 2
guid: 74f97434d71d7534185646bcb8c8c4ec
timeCreated: 1456343098
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
......@@ -15,7 +15,8 @@ public class Boss : MonoBehaviour {
protected List<pattern> patternList;
public List<string> bossLines = new List<string>();
public GameObject speechBubble;
bool speechOverlap = false;
bool speechOverlap = false;
public Slider hpSlider;
public int HP = 100;
public int Atk = 10;
protected int maxHP;
......@@ -24,7 +25,8 @@ public class Boss : MonoBehaviour {
get { return maxHP; }
}
void FixedUpdate()
{
{
hpSlider.value = (float)HP / MaxHP;
if (HP <= 0)
{
DieBoss();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment