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

22 lines
631 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))]
public class Player : BaseCharacter, IDamageable
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
public virtual void TakeDamage(float attackerPower, float attackerShieldPenetrationRate = default, Vector3? attackPos = null)
{
throw new System.NotImplementedException();
}
public virtual void OnMove(InputValue value) // WASD
2023-10-06 05:41:16 +00:00
{
movementInput = value.Get<Vector2>();
}
2023-09-27 02:55:13 +00:00
}
}