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-11 20:26:45 +00:00
|
|
|
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
|
|
|
|
2023-10-11 20:26:45 +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
|
|
|
}
|
|
|
|
}
|