void Update() { currentSpeed = new Vector3(m_rigidbody.velocity.x, 0, m_rigidbody.velocity.z); if (isTriggerSkill) { m_PlayerController.m_PlayerAttributes.SliderAddVaule = -0.4f; if (m_rigidbody.velocity == Vector3.zero) { skillEffect.CmdAddForce(transform.forward * 1000); } else { skillEffect.CmdAddForce(currentSpeed.normalized * 1000); } } else { m_PlayerController.m_PlayerAttributes.SliderAddVaule = 0.1f; } if (currentSpeed.magnitude > m_PlayerController.m_PlayerAttributes.MaxSpeed) { m_rigidbody.velocity /= currentSpeed.magnitude / m_PlayerController.m_PlayerAttributes.MaxSpeed; } if (slider.value == 0) { SkillNormalRelease(null); } SliderADD(); }