로딩화면 개선
This commit is contained in:
@@ -31,9 +31,7 @@ private void Awake()
|
||||
else
|
||||
{
|
||||
Destroy(gameObject); //이미 인스턴스가 있으면 자신을 파괴
|
||||
}
|
||||
|
||||
_loadingScreen = _loadingCam.GetComponentInChildren<LoadingScreen>();
|
||||
}
|
||||
|
||||
if (_supermarketStartSkybox != null)
|
||||
_runtimeStartSkybox = new Material(_supermarketStartSkybox);
|
||||
@@ -64,8 +62,7 @@ private void Update()
|
||||
{
|
||||
if(_loadingCamTargetTransform != null)
|
||||
{
|
||||
_loadingCam.transform.position = _loadingCamTargetTransform.position;
|
||||
_loadingCam.transform.rotation = _loadingCamTargetTransform.rotation;
|
||||
_loadingRoot.transform.position = _loadingCamTargetTransform.position;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,7 +126,10 @@ private async Awaitable FadeSkybox(float from, float to, float duration)
|
||||
public async Awaitable SetSceneLoadingActive(bool isActive,float alphaTime)
|
||||
{
|
||||
if (isActive)
|
||||
{
|
||||
_loadingRoot.SetActive(true);
|
||||
}
|
||||
|
||||
|
||||
if (alphaTime > 0f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user