|
@@ -172,6 +172,7 @@ public class AttributeStatus : MonoBehaviour
|
|
|
//»÷·É
|
|
//»÷·É
|
|
|
case AttackEffect.BlowUp:
|
|
case AttackEffect.BlowUp:
|
|
|
AddBlowUp(attackInfo.blowUp, attackFrom.bodyTrans);
|
|
AddBlowUp(attackInfo.blowUp, attackFrom.bodyTrans);
|
|
|
|
|
+ character.bodyCollider.layer = LayerMask.NameToLayer("BodyToPlatformCollider");
|
|
|
if (attackInfo.blowUp.haveLandingDamage)
|
|
if (attackInfo.blowUp.haveLandingDamage)
|
|
|
{
|
|
{
|
|
|
landingDamageFrom = attackFrom;
|
|
landingDamageFrom = attackFrom;
|
|
@@ -180,6 +181,7 @@ public class AttributeStatus : MonoBehaviour
|
|
|
//»÷Âä
|
|
//»÷Âä
|
|
|
case AttackEffect.ShotDown:
|
|
case AttackEffect.ShotDown:
|
|
|
AddShotDown(attackInfo.shotDown, attackFrom.bodyTrans);
|
|
AddShotDown(attackInfo.shotDown, attackFrom.bodyTrans);
|
|
|
|
|
+ character.bodyCollider.layer = LayerMask.NameToLayer("BodyToPlatformCollider");
|
|
|
if (attackInfo.shotDown.haveLandingDamage)
|
|
if (attackInfo.shotDown.haveLandingDamage)
|
|
|
{
|
|
{
|
|
|
landingDamageFrom = attackFrom;
|
|
landingDamageFrom = attackFrom;
|
|
@@ -233,6 +235,7 @@ public class AttributeStatus : MonoBehaviour
|
|
|
else if (foot.TrigGround || curHeight <= origPos.y + 0.05f)
|
|
else if (foot.TrigGround || curHeight <= origPos.y + 0.05f)
|
|
|
{
|
|
{
|
|
|
floatingState = 0;
|
|
floatingState = 0;
|
|
|
|
|
+ character.bodyCollider.layer = character.gameObject.layer;
|
|
|
character.isAdjustHeight = 1;
|
|
character.isAdjustHeight = 1;
|
|
|
OutSpecialState();
|
|
OutSpecialState();
|
|
|
return;
|
|
return;
|
|
@@ -271,7 +274,7 @@ public class AttributeStatus : MonoBehaviour
|
|
|
break;
|
|
break;
|
|
|
case 0:
|
|
case 0:
|
|
|
Vector3 vel = rb.velocity;
|
|
Vector3 vel = rb.velocity;
|
|
|
- if (isFly && foot.TrigGround)
|
|
|
|
|
|
|
+ if (isFly && foot.TrigGround && vel.y <= 0)
|
|
|
{
|
|
{
|
|
|
vel = Vector3.zero;
|
|
vel = Vector3.zero;
|
|
|
if (!foot.haveGravity)
|
|
if (!foot.haveGravity)
|
|
@@ -279,6 +282,7 @@ public class AttributeStatus : MonoBehaviour
|
|
|
transform.position = new Vector3(transform.position.x, character.platformPosY, transform.position.z);
|
|
transform.position = new Vector3(transform.position.x, character.platformPosY, transform.position.z);
|
|
|
}
|
|
}
|
|
|
character.ani.Play("weak", 0, 0);
|
|
character.ani.Play("weak", 0, 0);
|
|
|
|
|
+
|
|
|
hitState = 1;
|
|
hitState = 1;
|
|
|
if (haveLandingDamage)
|
|
if (haveLandingDamage)
|
|
|
{
|
|
{
|