|
|
@@ -54,6 +54,7 @@ public class Boss : MoveCharacter
|
|
|
|
|
|
[FoldoutGroup("실�斤口")]
|
|
|
public BossState bossState;
|
|
|
+ private BossState oldState;
|
|
|
[LabelText("켐제令")]
|
|
|
public int totalPatience; //놓迦켐제令�掘
|
|
|
private int curPatience; //뎠품켐제令
|
|
|
@@ -221,6 +222,7 @@ public class Boss : MoveCharacter
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
+ oldState = bossState;
|
|
|
switch (bossState)
|
|
|
{
|
|
|
case BossState.weak:
|
|
|
@@ -246,8 +248,12 @@ public class Boss : MoveCharacter
|
|
|
curPatience = curTotalPatience;
|
|
|
//路零켐제係
|
|
|
uiPatience.Show(curPatience, curTotalPatience);
|
|
|
+ //헌왕景喝榴檄
|
|
|
status.OutSpecialState();
|
|
|
+ //령契
|
|
|
nowCanFly = canFly;
|
|
|
+ //꺄렴roar땡뺌
|
|
|
+ ani.Play("roar", 0, 0);
|
|
|
break;
|
|
|
}
|
|
|
bossState = bs;
|
|
|
@@ -263,8 +269,11 @@ public class Boss : MoveCharacter
|
|
|
rb.useGravity = true;
|
|
|
break;
|
|
|
case BossState.rise:
|
|
|
- int randomAni = RandomWithWeight(weight);
|
|
|
- ani.Play(idleAniNames[randomAni], 0, 0);
|
|
|
+ if (oldState != BossState.weak)
|
|
|
+ {
|
|
|
+ int randomAni = RandomWithWeight(weight);
|
|
|
+ ani.Play(idleAniNames[randomAni], 0, 0);
|
|
|
+ }
|
|
|
rb.velocity = Vector3.zero;
|
|
|
flyHeight = Random.Range(minFlyHeight, maxFlyHeight);
|
|
|
break;
|