조이스틱 동작이 자연스럽게 구현하도록 수정 및 에디터 상에서 좌우 입력과 점프 동작 추가 적용함
This commit is contained in:
@@ -5,6 +5,10 @@ using UnityEngine.EventSystems;
|
||||
|
||||
namespace TON
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Joystick Assets에서 가져온 조이스틱 기본 동작 스크립트
|
||||
/// </summary>
|
||||
public class Joystick : MonoBehaviour, IPointerDownHandler, IDragHandler, IPointerUpHandler
|
||||
{
|
||||
public float Horizontal { get { return (snapX) ? SnapFloat(input.x, AxisOptions.Horizontal) : input.x; } }
|
||||
|
||||
@@ -5,6 +5,9 @@ using UnityEngine.EventSystems;
|
||||
|
||||
namespace TON
|
||||
{
|
||||
/// <summary>
|
||||
/// Joystick Assets에서 가져온 조이스틱 초기화 스크립트
|
||||
/// </summary>
|
||||
public class VariableJoystick : Joystick
|
||||
{
|
||||
public float MoveThreshold { get { return moveThreshold; } set { moveThreshold = Mathf.Abs(value); } }
|
||||
|
||||
Reference in New Issue
Block a user