OldBlueWater/BlueWater/Assets/02.Scripts/Character/Player/Player.cs

17 lines
391 B
C#
Raw Normal View History

2023-09-27 02:55:13 +00:00
using UnityEngine;
2023-10-06 05:41:16 +00:00
using UnityEngine.InputSystem;
2023-09-27 02:55:13 +00:00
// ReSharper disable once CheckNamespace
namespace BlueWaterProject
{
2023-10-06 05:41:16 +00:00
[RequireComponent(typeof(PlayerInput))]
2023-10-05 04:11:46 +00:00
public class Player : BaseCharacter
2023-09-27 02:55:13 +00:00
{
2023-10-06 05:41:16 +00:00
protected Vector2 movementInput;
2023-10-05 04:11:46 +00:00
2023-10-06 05:41:16 +00:00
public void OnMove(InputValue value) // WASD
{
movementInput = value.Get<Vector2>();
}
2023-09-27 02:55:13 +00:00
}
}