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,56 @@
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using DentedPixel;
public class TestingSceneSwitching : MonoBehaviour {
public GameObject cube;
private static int sceneIter = 0;
private int tweenCompleteCnt;
// Use this for initialization
void Start () {
LeanTest.expected = 6;
// Start a couple of tweens and make sure they complete
tweenCompleteCnt = 0;
LeanTween.scale(cube, new Vector3(3f,3f,3f), 0.1f).setDelay(0.1f).setOnComplete( ()=>{
tweenCompleteCnt++;
});
LeanTween.move(cube, new Vector3(3f,3f,3f), 0.1f).setOnComplete( ()=>{
tweenCompleteCnt++;
});
LeanTween.delayedCall(cube, 0.1f, ()=>{
tweenCompleteCnt++;
});
// Schedule a couple of tweens, make sure some only half complete than switch scenes
LeanTween.delayedCall(cube, 1f, ()=>{
LeanTween.scale(cube, new Vector3(3f,3f,3f), 1f).setDelay(0.1f).setOnComplete( ()=>{
});
LeanTween.move(cube, new Vector3(3f,3f,3f), 1f).setOnComplete( ()=>{
});
});
// Load next scene
LeanTween.delayedCall(cube, 0.5f, ()=>{
LeanTest.expect( tweenCompleteCnt==3, "Scheduled tweens completed:"+sceneIter);
if(sceneIter<5){
sceneIter++;
SceneManager.LoadScene(0);
}
});
}
}