タップ判定変更

This commit is contained in:
kimura 2021-06-23 14:58:45 +09:00
parent b56d20e1b1
commit 461082455e
2 changed files with 2 additions and 4 deletions

View File

@ -6,7 +6,7 @@ using UnityEngine.UI;
using UnityEngine.EventSystems;
[RequireComponent(typeof(BoxCollider2D))]
public class PanController : MonoBehaviour, IDragHandler, IBeginDragHandler
public class PanController : MonoBehaviour//, IDragHandler, IBeginDragHandler
{
private Transform cacheTransform;
private Vector3 offset;

View File

@ -1,7 +1,5 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UniRx;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
@ -70,7 +68,7 @@ public class PopcornGameManager : MonoBehaviour
// Update is called once per frame
void Update()
{
if(Input.GetMouseButtonDown(0) && CheckTap(Input.mousePosition))
if(Input.GetMouseButtonDown(0))
{
if (!isProgress)
{