2024-11-22 17:48:26 +08:00
|
|
|
|
using DG.Tweening;
|
2024-11-12 19:43:17 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
2024-11-22 17:48:26 +08:00
|
|
|
|
using UnityEngine.UI;
|
2024-11-12 19:43:17 +08:00
|
|
|
|
public class PlayerMovePos : MonoBehaviour
|
|
|
|
|
{
|
2024-11-18 16:53:39 +08:00
|
|
|
|
|
2024-11-12 19:43:17 +08:00
|
|
|
|
public Transform StartPos;
|
2024-11-13 02:03:11 +08:00
|
|
|
|
public Transform CurrentPos;
|
2024-11-12 19:43:17 +08:00
|
|
|
|
public int StartIndex;
|
2024-11-13 02:03:11 +08:00
|
|
|
|
|
|
|
|
|
public bool HadChoise;//<2F>Ƿ<EFBFBD>ѡ<EFBFBD><EFBFBD>
|
|
|
|
|
public Transform Parent;
|
|
|
|
|
public bool IsReturn;
|
2024-11-13 18:01:18 +08:00
|
|
|
|
|
|
|
|
|
public Animator PlayAni;
|
|
|
|
|
public bool IsLeft;//<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
public int HouseId;//<2F><><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
2024-11-22 17:48:26 +08:00
|
|
|
|
private Vector3 originalScale;
|
2024-11-12 19:43:17 +08:00
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
2024-11-22 17:48:26 +08:00
|
|
|
|
|
|
|
|
|
originalScale=transform.localScale;
|
2024-11-12 19:43:17 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-11-22 17:48:26 +08:00
|
|
|
|
public void Zoomout()//<2F><>С
|
|
|
|
|
{
|
|
|
|
|
Image image = GetComponent<Image>();
|
|
|
|
|
image.rectTransform.DOScale(0.9f, 0.5f).SetEase(Ease.Linear);
|
|
|
|
|
}
|
|
|
|
|
public void ReplySize()//<2F>ָ<EFBFBD><D6B8><EFBFBD>С
|
|
|
|
|
{
|
|
|
|
|
Image image = GetComponent<Image>();
|
|
|
|
|
image.rectTransform.DOScale(originalScale, 0.5f).SetEase(Ease.Linear);
|
|
|
|
|
}
|
2024-11-12 19:43:17 +08:00
|
|
|
|
}
|