|
@@ -32,6 +32,11 @@ public class HitFeedbackSystem : MonoBehaviour
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ private void OnDisable()
|
|
|
|
|
+ {
|
|
|
|
|
+ isFreeze = false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
void FixedUpdate()
|
|
void FixedUpdate()
|
|
|
{
|
|
{
|
|
|
//¶ÙÖ¡
|
|
//¶ÙÖ¡
|
|
@@ -49,7 +54,7 @@ public class HitFeedbackSystem : MonoBehaviour
|
|
|
{
|
|
{
|
|
|
character.rb.constraints = origRC;
|
|
character.rb.constraints = origRC;
|
|
|
character.rb.velocity = velocity;
|
|
character.rb.velocity = velocity;
|
|
|
- character.state = curCharacterState;
|
|
|
|
|
|
|
+ character.ChangeState(curCharacterState);
|
|
|
}
|
|
}
|
|
|
attributeStatus.AddSpecialState(attackInfoData, attackFromData);
|
|
attributeStatus.AddSpecialState(attackInfoData, attackFromData);
|
|
|
}
|
|
}
|
|
@@ -87,7 +92,7 @@ public class HitFeedbackSystem : MonoBehaviour
|
|
|
origRC = character.rb.constraints;
|
|
origRC = character.rb.constraints;
|
|
|
velocity = character.rb.velocity;
|
|
velocity = character.rb.velocity;
|
|
|
curCharacterState = character.state;
|
|
curCharacterState = character.state;
|
|
|
- character.state = CharacterState.None;
|
|
|
|
|
|
|
+ character.ChangeState(CharacterState.FramePause);
|
|
|
}
|
|
}
|
|
|
isFreeze = true;
|
|
isFreeze = true;
|
|
|
character.ani.speed = 0;
|
|
character.ani.speed = 0;
|