LobbyUI 슬라이드 구조 적용

This commit is contained in:
aube.lee
2025-02-05 00:47:20 +09:00
parent 3455b9dd1b
commit b43bd19021
444 changed files with 192503 additions and 31 deletions

View File

@@ -0,0 +1,38 @@
using UnityEngine;
using System.Collections;
using DentedPixel;
public class TestingRotate : MonoBehaviour {
//method 1 leantween
public GameObject sun ;
public GameObject earth;
//method 2 leantween
public GameObject sun2;
public GameObject earth2;
//method 3 unity3d
public GameObject sun3;
public GameObject earth3;
void Start () {
//method 1 leantween
Vector3 sunLocalForEarth = earth.transform.InverseTransformPoint(sun.transform.position);
Debug.Log("sunLocalForEarth:"+sunLocalForEarth);
LeanTween.rotateAround(earth, earth.transform.up, 360f, 5.0f).setPoint(sunLocalForEarth).setRepeat(-1);
//method 2 leantween
Vector3 sunLocalForEarth2 = earth2.transform.InverseTransformPoint(sun2.transform.position);
LeanTween.rotateAroundLocal(earth2, earth2.transform.up, 360f, 5.0f).setPoint(sunLocalForEarth2);
}
void Update() {
//method 3 unity3d
earth3.transform.RotateAround(sun3.transform.position, sun3.transform.up, 72f * Time.deltaTime);
}
}