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