17 lines
391 B
C#
17 lines
391 B
C#
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace BlueWaterProject
|
|
{
|
|
[RequireComponent(typeof(PlayerInput))]
|
|
public class Player : BaseCharacter
|
|
{
|
|
protected Vector2 movementInput;
|
|
|
|
public void OnMove(InputValue value) // WASD
|
|
{
|
|
movementInput = value.Get<Vector2>();
|
|
}
|
|
}
|
|
} |