// Use this for initialization void Start() { manager = gameObject.GetComponent<AudioManager>(); gameManager = GameObject.Find("TrainManager").GetComponent<TrainManager>(); hand = gameObject.GetComponentInChildren<TutorialHand>(); tutorialCow = GameObject.Find("TutorialCow"); tutorialCow.SetActive(false); if(GameObject.Find("SelectedTrain") != null) { SelectedTrain selectedTrain = GameObject.Find("SelectedTrain").GetComponent<SelectedTrain>(); if (selectedTrain.showTutorial) { //Debug.Log("SHOWING TUTORIAL"); StartCoroutine("runTutorial"); } else { //Debug.Log("NOT SHOWING TUTORIAL"); gameManager.startTrain(); Destroy(this.gameObject); } } else { //Debug.Log("NOT SHOWING TUTORIAL - selected train not found"); gameManager.startTrain(); Destroy(this.gameObject); } }