public void Interact() { switch (mode) { case "shop": lobbyControls.SetActive(false); camera.MoveToShopKeeper(() => { shop.gameObject.SetActive(true); shop.PlayOpenAnimation(); }); break; case "play": lobbyControls.SetActive(false); camera.MoveToFloorGem(() => { if (PlayerDataState.currentLevel != null && PlayerDataState.currentLevel != 0) { playerContinueUI.gameObject.SetActive(true); playerContinueUI.PlayOpenAnimation(); playerContinueUI.PlaceProgress(); } else { playerNewUI.gameObject.SetActive(true); playerNewUI.PlayOpenAnimation(); } // loading.gameObject.SetActive(true); // loading.PlayOpenAnimation(); // SceneManager.LoadScene("Game"); }); break; case "levelup": lobbyControls.SetActive(false); camera.MoveToLevelUp(() => { levelUpUI.gameObject.SetActive(true); levelUpUI.PlayOpenAnimation(); }); break; } }