void Start()
 {
     lineIndex  = 0;
     storyLines = story.Split('\n');
     textManager.SetActionOnceShown(() => PreviousLineShow());
     textManager.ClearText();
     StartCoroutine(ShowNextLineWithDelay(1f));
 }
示例#2
0
    void SetUpStory()
    {
        exposed  = false;
        defiance = 0;
        pos      = startPos;
        textManager.ClearText();

        int citizenNumber = GenerateRandomNumber(6);
        int cityNumber    = GenerateRandomNumber(1);

        foreach (var pair in branches)
        {
            if (pair.Value.GetText().Contains("[rand_6_digit_num]"))
            {
                pair.Value.InsertInput("[rand_6_digit_num]", citizenNumber.ToString("D6"));
            }
            if (pair.Value.GetText().Contains("[rand_1_digit_num]"))
            {
                pair.Value.InsertInput("[rand_1_digit_num]", cityNumber.ToString());
            }
        }

        titleText.SetActive(true);
        inputField.gameObject.SetActive(false);
        startButton.SetActive(true);
        loadingCircle.SetActive(true);
    }
示例#3
0
 void EndLevel()
 {
     textManager.ClearText();
     SceneManager.LoadScene("results");
 }
示例#4
0
 public void HideText()
 {
     textManager.ClearText();
     gameObject.SetActive(false);
 }