|
|
@@ -485,13 +485,17 @@ public class AttributeStatus : MonoBehaviour
|
|
|
attackDir = attackFrom.position.x < transform.position.x ? -1 : 1;
|
|
|
break;
|
|
|
}
|
|
|
+ if(attackDir < 0)
|
|
|
+ {
|
|
|
+ vec3.x = -vec3.x;
|
|
|
+ }
|
|
|
hitState = -1;
|
|
|
character.ChangeState(CharacterState.SpecialStatus_BlowUp);
|
|
|
character.ChangeStateText(CharacterState.SpecialStatus_BlowUp);
|
|
|
rb.useGravity = true;
|
|
|
rb.constraints = RigidbodyConstraints.FreezeRotation | RigidbodyConstraints.FreezePositionZ;
|
|
|
rb.velocity = Vector3.zero;
|
|
|
- rb.AddForce(vec3 * attackDir * blowUp.force * (1 - resistances.BlowUp), ForceMode.Impulse);
|
|
|
+ rb.AddForce(vec3 * blowUp.force * (1 - resistances.BlowUp), ForceMode.Impulse);
|
|
|
rb.transform.rotation = Quaternion.Euler(0, 0, 0);
|
|
|
character.mecanim.transform.rotation = Quaternion.Euler(0, 0, startFlyAngle * attackDir);
|
|
|
flyingRotateSpeed = UnityEngine.Random.Range(flyingRotateSpeedRange.x,flyingRotateSpeedRange.y) * attackDir;
|