22 lines
492 B
C#
22 lines
492 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
|
|
public class Player : CombatEntity
|
|
{
|
|
//[Header("Input")]
|
|
//private InputAction moveAction;
|
|
|
|
/*private void Start()
|
|
{
|
|
//moveAction = InputSystem.actions.FindAction("Move");
|
|
}*/
|
|
|
|
protected override void Movement()
|
|
{
|
|
base.Movement();
|
|
//Debug.Log(moveAction.actionMap);
|
|
//moveDirection = moveAction.ReadValue<Vector2>();
|
|
moveDirection = new Vector3(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"), 0);
|
|
}
|
|
}
|