public void LoadGameScene(ShopScene shopScene) { ShowLoadingScene(() => { // 초기화 후 다시 불러오기 SceneManager.LoadScene("GameScene"); string shopSceneName; switch (shopScene) { case ShopScene.Shop1: shopSceneName = "Shop1Scene"; break; case ShopScene.Shop2: shopSceneName = "Shop2Scene"; break; case ShopScene.Shop3: shopSceneName = "Shop3Scene"; break; default: shopSceneName = ""; break; } SceneManager.LoadScene(shopSceneName, LoadSceneMode.Additive); SceneManager.LoadScene("TownScene", LoadSceneMode.Additive); CurrentLoadedShopScene = shopScene; }); }
protected void Awake() { _instance = this; CheckHammer(); }
public void SetShopComponent(ShopScene component) { shopComponent = component; }