46 lines
1.6 KiB
C#
46 lines
1.6 KiB
C#
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
|
|
namespace DDD
|
|
{
|
|
[CreateAssetMenu(fileName = "RestaurantPlayerDataSo", menuName = "ScriptableObjects/RestaurantPlayerDataSo")]
|
|
public class RestaurantPlayerDataSo : ScriptableObject
|
|
{
|
|
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 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 OpenManagementUiAction;
|
|
}
|
|
} |