// Use this for initialization void Start() { livesTextTemp = gameObject.GetComponentsInChildren <Text>(); foreach (Text text in livesTextTemp) { if (text.name == "LivesLeft") { livesText = text; } } getLives = GameObject.FindObjectOfType <RileyD_Lives>(); }
// Use this for initialization void Start() { currScene = SceneManager.GetActiveScene(); lives = GameObject.FindObjectOfType <RileyD_Lives>(); score = GameObject.FindObjectOfType <RileyD_Score>(); }