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: