// Start is called before the first frame update void Start() { if (pi.GetIntroStatus()) { intro.SetActive(false); player.SetActive(true); gameObject.GetComponent <BarIntroScript>().enabled = false; } else { player.SetActive(false); intro.SetActive(true); StartCoroutine(WaitForDialogue(introDialogue1)); } }