フライパン移動範囲調整
This commit is contained in:
parent
c6a6815e4e
commit
43282296b7
|
|
@ -6,13 +6,13 @@ using UnityEngine.UI;
|
||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
|
|
||||||
[RequireComponent(typeof(BoxCollider2D))]
|
[RequireComponent(typeof(BoxCollider2D))]
|
||||||
public class PanController : MonoBehaviour//, IDragHandler, IBeginDragHandler
|
public class PanController : MonoBehaviour, IDragHandler, IBeginDragHandler
|
||||||
{
|
{
|
||||||
[SerializeField] private float lerpTime = 0.1f;
|
[SerializeField] private float lerpTime = 0.1f;
|
||||||
private Transform cacheTransform;
|
private Transform cacheTransform;
|
||||||
private Vector3 offset;
|
private Vector3 offset;
|
||||||
private readonly (float min, float max) borderX = (-4.1f, 4.1f);
|
private readonly (float min, float max) borderX = (-1.2f, 3.1f);
|
||||||
private readonly (float min, float max) borderY = (-4.1f, 4.1f);
|
private readonly (float min, float max) borderY = (-1.1f, 0.3f);
|
||||||
|
|
||||||
private Vector2 direction;
|
private Vector2 direction;
|
||||||
// public Vector2 Direction => direction;
|
// public Vector2 Direction => direction;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue