Exemple #1
0
    void Start()
    {
        bossImage = personUI.transform.GetChild(0).gameObject;

        if (pi.GetTutorialStatus())
        {
            bossImage.SetActive(false);
            clockButton.onClick.AddListener(SaveToNextScene);
            buyButton.gameObject.GetComponentInChildren <TextMeshProUGUI>().text = "SOLD";
            buyButton.enabled = false;
            gameObject.GetComponent <Tutorial>().enabled = false;
        }
        else
        {
            typeTrack = letter.GetComponent <TypeTrackerV2>();
            letter.GetComponent <LetterInteract>().letter = tutLetter;
            textBox = personUI.transform.GetChild(1).gameObject;
            orgPos  = textBox.transform.position;
            blocker.SetActive(true);
            songbookButton.enabled = false;
            shopButton.enabled     = false;
            laptopButton.enabled   = false;
            buyButton.enabled      = false;
            clockButton.enabled    = false;
            songbookPanel.transform.GetChild(2).gameObject.SetActive(false);
            shopPanel.transform.GetChild(1).gameObject.SetActive(false);
            botMid = new Vector3(0f, -190f, 0f);
            StartCoroutine(WaitForDialogue(dialogues[0]));
        }
    }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     blocker.SetActive(true);
     ttv2      = gameObject.GetComponent <TypeTrackerV2>();
     audioS    = GetComponent <AudioSource>();
     waitToEnd = false;
     newSong   = false;
     ten       = 10;
     sixty     = 60;
     Setup();
 }