From a0ad4a13138ff0f1f9fbee47a24ab42aac4a8a0b Mon Sep 17 00:00:00 2001 From: "aube.lee" Date: Mon, 17 Mar 2025 00:54:51 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=82=AC=EC=9A=A9=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8A=94=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Gameton/Scripts/UI/SwipeController.cs | 50 ------------------- .../Scripts/UI/SwipeController.cs.meta | 11 ---- 2 files changed, 61 deletions(-) delete mode 100644 Gameton-06/Assets/Gameton/Scripts/UI/SwipeController.cs delete mode 100644 Gameton-06/Assets/Gameton/Scripts/UI/SwipeController.cs.meta diff --git a/Gameton-06/Assets/Gameton/Scripts/UI/SwipeController.cs b/Gameton-06/Assets/Gameton/Scripts/UI/SwipeController.cs deleted file mode 100644 index ffa3c9bb..00000000 --- a/Gameton-06/Assets/Gameton/Scripts/UI/SwipeController.cs +++ /dev/null @@ -1,50 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace TON -{ - public class SwipeController : MonoBehaviour - { - [SerializeField] int maxPage; - - [SerializeField] int currentPage; - [SerializeField] Vector2 targetPos; - [SerializeField] Vector2 pageStep; - [SerializeField] RectTransform levelPagesRect; - [SerializeField] float tweenTime; - [SerializeField] LeanTweenType tweenType; - - - private void Awake() - { - currentPage = 1; - targetPos = levelPagesRect.localPosition; - } - - public void Next() - { - if (currentPage < maxPage) - { - currentPage++; - targetPos += pageStep; - MovePage(); - } - } - - public void Previous() - { - if (currentPage > 1) - { - currentPage--; - targetPos -= pageStep; - MovePage(); - } - } - - public void MovePage() - { - levelPagesRect.LeanMoveLocal(targetPos, tweenTime).setEase(tweenType); - } - } -} diff --git a/Gameton-06/Assets/Gameton/Scripts/UI/SwipeController.cs.meta b/Gameton-06/Assets/Gameton/Scripts/UI/SwipeController.cs.meta deleted file mode 100644 index 5ba717e2..00000000 --- a/Gameton-06/Assets/Gameton/Scripts/UI/SwipeController.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2f2a180c175deed42b216234359be860 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: