Esempio n. 1
0
    IEnumerator _WaitForCameraLock(uint focusedPlanetInex)
    {
        while (!mainCamera.IsCurrentPhase(CameraScript.Phase.PlanetLock))// IsCurrentPhasePlanetLock())
        {
            yield return(new WaitForSeconds(0.01f));
        }

        planetInfoScreen.style.display = DisplayStyle.Flex;
        var planetInfoText = planetInfoScreen.Q <Label>("info-label");
        var planetInfoName = planetInfoScreen.Q <Label>("name-label");
        var planetInfo     = TextTable.GetLines(IndexToName(focusedPlanetInex), "PlanetInfo");

        planetInfoName.text = planetInfo[0];
        planetInfoText.text = planetInfo[1];
        currentPlanetName   = planetInfo[0];
        if (saveManager.IsPlanetDone((int)focusedPlanetInex, (int)UIManager.GetDifficulty()))
        {
            planetIsDoneText.SetActive(true);
        }
        //foreach (GameObject infoPanel in planetInfoPanels)
        //{
        //    if (infoPanel.transform.GetComponent<PlanetInfoScript>().GetIndex() == focusedPlanetInex)
        //    {
        //        infoPanel.SetActive(true);
        //    }
        //    else
        //    {
        //        infoPanel.SetActive(false);
        //    }
        //}
        currentPhase = UI_Phase.PlanetInfo;
        //btmButton.SetActive(true);
        //solveButton.SetActive(true);
        yield break;
    }
Esempio n. 2
0
    void SetFactText()
    {
        var factLabel = endScreen.Q <Label>("fact-label");
        var factText  = TextTable.GetLines(IndexToName(lastActiveInfoPanel), "WinInfo");

        factLabel.text = factText[1];
    }