|
@@ -47,6 +47,7 @@ public class AttributeStatus : MonoBehaviour
|
|
|
private int landingDamage;
|
|
private int landingDamage;
|
|
|
private Character landingDamageFrom;
|
|
private Character landingDamageFrom;
|
|
|
private Vector3 startFlyPos;
|
|
private Vector3 startFlyPos;
|
|
|
|
|
+ private float landingDamageRate;
|
|
|
|
|
|
|
|
[TabGroup("Ò×ÉË")]
|
|
[TabGroup("Ò×ÉË")]
|
|
|
[DisplayOnly] public bool haveVulnerable;
|
|
[DisplayOnly] public bool haveVulnerable;
|
|
@@ -290,7 +291,10 @@ public class AttributeStatus : MonoBehaviour
|
|
|
hitState = 1;
|
|
hitState = 1;
|
|
|
if (haveLandingDamage)
|
|
if (haveLandingDamage)
|
|
|
{
|
|
{
|
|
|
- //if()
|
|
|
|
|
|
|
+ if(specialState == SpecialState.BlownUp)
|
|
|
|
|
+ {
|
|
|
|
|
+ landingDamage = (int)(Mathf.Abs(transform.position.x - startFlyPos.x) * landingDamageRate);
|
|
|
|
|
+ }
|
|
|
character.BeHit(landingDamage, landingDamageFrom);
|
|
character.BeHit(landingDamage, landingDamageFrom);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -426,6 +430,7 @@ public class AttributeStatus : MonoBehaviour
|
|
|
rb.transform.rotation = Quaternion.Euler(0, 0, 0);
|
|
rb.transform.rotation = Quaternion.Euler(0, 0, 0);
|
|
|
haveLandingDamage = blowUp.haveLandingDamage;
|
|
haveLandingDamage = blowUp.haveLandingDamage;
|
|
|
startFlyPos = transform.position;
|
|
startFlyPos = transform.position;
|
|
|
|
|
+ landingDamageRate = blowUp.landingDamageRate;
|
|
|
hitState = 0;
|
|
hitState = 0;
|
|
|
isFly = false;
|
|
isFly = false;
|
|
|
character.ani.Play("hitted", 0, 0);
|
|
character.ani.Play("hitted", 0, 0);
|