movement and dialogue system
This commit is contained in:
parent
977e666577
commit
1590b5faa6
123 changed files with 62825 additions and 355 deletions
22
Assets/Scripts/Entity/Player.cs
Normal file
22
Assets/Scripts/Entity/Player.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue