added reload animation and feature
This commit is contained in:
@@ -10,8 +10,6 @@ namespace Darkmatter.Presentation
|
||||
{
|
||||
public class PlayerMotor : MonoBehaviour, IPlayerPawn
|
||||
{
|
||||
public TwoBoneIKConstraint IKConstraint;
|
||||
|
||||
[Header("LookSetting")]
|
||||
public Transform cinemachineFollowTarget;
|
||||
|
||||
@@ -29,13 +27,30 @@ namespace Darkmatter.Presentation
|
||||
|
||||
[Header("TurnSetting")]
|
||||
public float turnSpeed = 5f;
|
||||
|
||||
[Inject] private PlayerConfigSO playerConfig;
|
||||
|
||||
|
||||
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Cursor.lockState = CursorLockMode.Locked;
|
||||
}
|
||||
private void HandleShooting()
|
||||
{
|
||||
//float shootingWeight = animator.GetLayerWeight(1);
|
||||
//float targetWeight = inputReader.isShooting ? 1 : 0;
|
||||
//float setshootingWeight = Mathf.Lerp(shootingWeight, targetWeight, Time.deltaTime * 5);
|
||||
//animator.SetLayerWeight(1, setshootingWeight);
|
||||
//animator.SetBool("IsShooting", inputReader.isShooting);
|
||||
|
||||
//if (!inputReader.isShooting) return;
|
||||
//if(gunWeapon.canAttack)
|
||||
//{
|
||||
// gunWeapon.Attack();
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
//state based functions
|
||||
public void Move(Vector3 motion)
|
||||
|
||||
Reference in New Issue
Block a user