fix: 사용하지 않는 스크립트 삭제
This commit is contained in:
@@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 2f2a180c175deed42b216234359be860
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Reference in New Issue
Block a user