フライパン移動範囲調整

This commit is contained in:
kimura 2021-06-24 12:31:26 +09:00
parent c6a6815e4e
commit 43282296b7
1 changed files with 3 additions and 3 deletions

View File

@ -6,13 +6,13 @@ using UnityEngine.UI;
using UnityEngine.EventSystems;
[RequireComponent(typeof(BoxCollider2D))]
public class PanController : MonoBehaviour//, IDragHandler, IBeginDragHandler
public class PanController : MonoBehaviour, IDragHandler, IBeginDragHandler
{
[SerializeField] private float lerpTime = 0.1f;
private Transform cacheTransform;
private Vector3 offset;
private readonly (float min, float max) borderX = (-4.1f, 4.1f);
private readonly (float min, float max) borderY = (-4.1f, 4.1f);
private readonly (float min, float max) borderX = (-1.2f, 3.1f);
private readonly (float min, float max) borderY = (-1.1f, 0.3f);
private Vector2 direction;
// public Vector2 Direction => direction;