ProjectDDD/Assets/_DDD/_Scripts/RestaurantData/DataObjects/RestaurantPlayerDataSo.cs
NTG 8031f5cfa0 플레이어 생성 위치 초기화 오류 수정
Instantiate(prefab)만 사용하면 추후에 position을 바꿔도 다시 프리팹의 포지션으로 돌아오는 현상이 내부적으로 존재함.
Instantiate 동시에 매개변수로 position, rotation, parent를 모두 초기화 하는걸 권장함
2025-08-17 15:02:04 +09:00

52 lines
1.7 KiB
C#

using UnityEngine;
using UnityEngine.InputSystem;
namespace DDD
{
[CreateAssetMenu(fileName = "RestaurantPlayerDataSo", menuName = "RestaurantData/RestaurantPlayerDataSo")]
public class RestaurantPlayerDataSo : ScriptableObject
{
public GameObject PlayerPrefab;
public bool IsDrawLineDebug = true;
public bool IsMoveEnabled = true;
public float MoveSpeed = 7f;
public float Acceleration = 70f;
public float Deceleration = 350f;
public bool IsDashEnabled = true;
public float DashSpeed = 20f;
public float DashTime = 0.2f;
public float DashCooldown = 2f;
[Tooltip("슬라이딩이 적용되지 않는 충돌체 레이어 (Ground 등)")]
public LayerMask IgnoreSlidingLayerMask;
[Range(0f, 3f), Tooltip("슬라이딩 보정 제곱\n낮을수록 슬라이딩이 잘 됨")]
public float SlidingThreshold = 0.5f;
public float VelocityMinThreshold = 0.01f;
public float BoxCastExtentScale = 0.95f;
public float MinSlideFactorThreshold = 0.05f;
public float InteractionRadius = 1f;
public LayerMask InteractionLayerMask;
// 디버그
public int InputLineSortingOrder = 10;
public int VelocityLineSortingOrder = 9;
public float InputLineWidth = 0.1f;
public float VelocityLineWidth = 0.2f;
public float InputLineLength = 1.5f;
public float VelocityLineScale = 0.5f;
public string WalkingSfxName;
public string DashSfxName;
public InputAction MoveAction;
public InputAction DashAction;
public InputAction InteractAction;
public InputAction OpenManagementUiAction;
}
}