2024-03-28 06:42:56 +00:00
|
|
|
using Sirenix.OdinInspector;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
|
|
namespace BlueWaterProject
|
|
|
|
{
|
|
|
|
public class CombatPlayer : MonoBehaviour
|
|
|
|
{
|
|
|
|
[Required, SerializeField] private CombatInput input;
|
|
|
|
[Required, SerializeField] private CombatMovement movement;
|
|
|
|
[Required, SerializeField] private CombatAnimator animator;
|
|
|
|
|
|
|
|
private void Awake()
|
|
|
|
{
|
|
|
|
movement.combatAnimator = animator;
|
|
|
|
}
|
|
|
|
|
2024-05-02 07:10:19 +00:00
|
|
|
private void Start()
|
2024-03-28 06:42:56 +00:00
|
|
|
{
|
|
|
|
input.OnMoveInputReceived += movement.InputMovementValue;
|
|
|
|
input.OnDashInputReceived += movement.HandleDash;
|
|
|
|
}
|
|
|
|
|
|
|
|
[Button("셋팅 초기화")]
|
|
|
|
private void InitSetting()
|
|
|
|
{
|
|
|
|
input = GetComponent<CombatInput>();
|
|
|
|
movement = GetComponent<CombatMovement>();
|
|
|
|
animator = GetComponent<CombatAnimator>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|