示例#1
0
 void SolveTask()
 {
     currentPhase = UI_Phase.Puzzle;
     mainCamera.EnablePuzzleLock(true);
     planetNameInGame.SetActive(true);
     planetNameInGame.GetComponent <TextMeshProUGUI>().text = IndexToName(loadGameScene.planetType);
     foreach (GameObject infoPanel in planetInfoPanels)
     {
         infoPanel.SetActive(false);
     }
     solveButton.SetActive(false);
     planetIsDoneText.SetActive(false);
     loadGameScene.LoadScene();
     loadGameScene.StopWaitingForPlanetClick();
 }
示例#2
0
    void SolveTask()
    {
        currentPhase = UI_Phase.Puzzle;
        mainCamera.EnablePuzzleLock(true);
        planetInfoScreen.style.display = DisplayStyle.None;
        var planetName = backButtonScreen.Q <Label>("name-label");

        planetName.style.display = DisplayStyle.Flex;
        planetName.text          = currentPlanetName;
        planetIsDoneText.SetActive(false);
        //planetNameInGame.SetActive(true);
        // planetNameInGame.GetComponent<TextMeshProUGUI>().text = IndexToName(loadGameScene.planetType);

        //GesturesController.RecogniseDoubleTouchGesturesAs_Shuffle();

        loadGameScene.LoadScene();
        loadGameScene.StopWaitingForPlanetClick();
    }