// Use this for initialization void Start() { rend = GetComponent <SpriteRenderer>(); timeManager = GameObject.FindGameObjectWithTag("TimeManager").GetComponent <TimeManager>(); sceneManager = GameObject.FindGameObjectWithTag("SceneManager").GetComponent <SceneManagerScript>(); faderStartText = GameObject.FindGameObjectWithTag("StartTextManager").GetComponent <UiFader>(); faderEndText = GameObject.FindGameObjectWithTag("EndTextManager").GetComponent <UiFader>(); calledOnce = false; print("Hay"); if (timeManager != null) { print("In here"); StartCoroutine(timeManager.WaitBeforeGameStarts()); } StartCoroutine(faderStartText.FadeInThenOut()); if (GameObject.FindGameObjectWithTag("Teacher") != null) { teacher = GameObject.FindGameObjectWithTag("Teacher").GetComponent <Teacher>(); } if (GameObject.FindGameObjectWithTag("KidTouched") != null) { kidTouched = GameObject.FindGameObjectWithTag("KidTouched").GetComponent <KidTouched>(); } print(kidTouched); }
// Use this for initialization void Start() { instance = this; fadeImage = GetComponent <Image>(); Fade(false); }
// Use this for initialization void Start() { uiFader = GetComponent <UiFader>(); alreadyDisplayed = false; }