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;
        });
    }
Beispiel #2
0
    protected void Awake()
    {
        _instance = this;

        CheckHammer();
    }
Beispiel #3
0
 public void SetShopComponent(ShopScene component)
 {
     shopComponent = component;
 }