/// <summary> /// Use this for initialization /// </summary> void Start() { // initialize score text scoreText = GameObject.FindGameObjectWithTag("ScoreText").GetComponent <Text>(); scoreText.text = ScorePrefix + score; //Fish game obj // GameObject.FindGameObjectWithTag("Fish"); Fish fish = GameObject.FindGameObjectWithTag("Fish").GetComponent <Fish>(); fish.AddPointAddedListener(onPointAdded); }