load sound into map collection
This commit is contained in:
@@ -428,52 +428,6 @@ namespace BrewMonster
|
||||
// UpdatePosWing();
|
||||
}
|
||||
|
||||
//public void HandleMovement()
|
||||
//{
|
||||
// // 1) Kiểm tra grounded bằng SphereCast ngắn dựa trên radius + skinWidth
|
||||
// isGrounded = GroundCheck(out lastGroundHit);
|
||||
// m_GndInfo.bOnGround = isGrounded;
|
||||
// // 2) Input tạm thời: giữ nguyên như bạn
|
||||
// //if (UnityEngine.Input.GetKeyDown(KeyCode.LeftShift)) SetStatusRun(true);
|
||||
// //if (UnityEngine.Input.GetKeyUp(KeyCode.LeftShift)) SetStatusRun(false);
|
||||
// //if (UnityEngine.Input.GetKeyDown(KeyCode.Space)) HandleJump();
|
||||
|
||||
// // 3) Trọng lực / sticky
|
||||
// if (isGrounded && playerVelocity.y < 0f)
|
||||
// {
|
||||
// // Đè nhẹ để bám đất (tránh nhấp-nháy)
|
||||
// playerVelocity.y = -2f;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// playerVelocity.y += gravityValue * Time.deltaTime;
|
||||
// }
|
||||
|
||||
// // 4) Chuyển động phẳng
|
||||
// float x = joystick.Horizontal;
|
||||
// float z = joystick.Vertical;
|
||||
|
||||
// Vector3 move = new Vector3(x, 0, z);
|
||||
// move = Vector3.ClampMagnitude(move, 1f);
|
||||
// if (move != Vector3.zero)
|
||||
// {
|
||||
// Vector3 finalMove = (move * playerSpeed) + (playerVelocity.y * Vector3.up);
|
||||
// controller.Move(finalMove * Time.deltaTime);
|
||||
// transform.forward = move;
|
||||
// m_MoveCtrl.GroundMove(Time.deltaTime);
|
||||
// m_MoveCtrl.SendMoveCmd(playerTransform.position, controller.velocity, (int)GPMoveMode.GP_MOVE_RUN);
|
||||
// m_aabb.Center = EC_Utility.ToA3DVECTOR3(playerTransform.position) +
|
||||
// new A3DVECTOR3(0.0f, m_aabb.Extents.y, 0.0f);
|
||||
// m_aabb.CompleteMinsMaxs();
|
||||
// m_aabbServer.Center = EC_Utility.ToA3DVECTOR3(playerTransform.position) +
|
||||
// new A3DVECTOR3(0.0f, m_aabbServer.Extents.y, 0.0f);
|
||||
// m_aabbServer.CompleteMinsMaxs();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// }
|
||||
//}
|
||||
|
||||
private void JoystickRelease(JoystickRealeaseEvent joystickRealeaseEvent)
|
||||
{
|
||||
// _playerStateMachine.ChangeState(_idleState);
|
||||
|
||||
Reference in New Issue
Block a user