Skip to content

Commit

Permalink
fix: player logic softbody error
Browse files Browse the repository at this point in the history
  • Loading branch information
gjwj5505 committed Dec 18, 2024
1 parent b57d201 commit 5ff26c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Assets/SWPPT3/Scripts/Main/PlayerLogic/PlayerMover.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using SWPPT3.Main.PlayerLogic.State;
using SWPPT3.Main.Prop;
using Unity.Collections;
using SWPPT3.SoftbodyPhysics;
using UnityEngine;

namespace SWPPT3.Main.PlayerLogic
Expand All @@ -12,6 +13,8 @@ public class PlayerMover : MonoBehaviour
{
[SerializeField] private PlayerScript _playerScript;
private Player _player;

private SoftbodyGenerator _softbody;

private float _moveSpeed;
private float _jumpForce;
Expand All @@ -31,6 +34,9 @@ public class PlayerMover : MonoBehaviour

private void Start()
{
_player = GetComponent<Player>();
_softbody = GetComponent<SoftbodyGenerator>();

_rigidBodyId = GetComponent<Rigidbody>().GetInstanceID();
_moveSpeed = _playerScript.MoveSpeed;
_rotationSpeed = _playerScript.RotationSpeed;
Expand Down

0 comments on commit 5ff26c4

Please sign in to comment.