LobbyScene 추가
This commit is contained in:
29
Gameton-06/Assets/Gameton/Scripts/Scenes/LobbyScene.cs
Normal file
29
Gameton-06/Assets/Gameton/Scripts/Scenes/LobbyScene.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace TON
|
||||
{
|
||||
public class LobbyScene : SceneBase
|
||||
{
|
||||
public override IEnumerator OnStart()
|
||||
{
|
||||
// Lobby 씬을 비동기로 로드한다.
|
||||
AsyncOperation asyncLoad = SceneManager.LoadSceneAsync("Lobby", LoadSceneMode.Single);
|
||||
|
||||
// 로드가 완료될 때 까지 yield return null 을 하면서 기다린다
|
||||
while (!asyncLoad.isDone)
|
||||
{
|
||||
yield return null;
|
||||
}
|
||||
}
|
||||
|
||||
public override IEnumerator OnEnd()
|
||||
{
|
||||
yield return null;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
11
Gameton-06/Assets/Gameton/Scripts/Scenes/LobbyScene.cs.meta
Normal file
11
Gameton-06/Assets/Gameton/Scripts/Scenes/LobbyScene.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4a8df2e01b86f9f438ebc13b160dcbd3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user