/// <summary> /// Initializes static members with SerializeFields. /// </summary> void Start() { scoreText = scoreHolder.GetComponent <Text>(); leftHitsText = leftHitsHolder.GetComponent <Text>(); rightHitsText = rightHitsHolder.GetComponent <Text>(); EventManager.AddListener(AddScore); Ball.AddPointsAddedListener(AddScore); EventManager.AddListener(AddHits); Paddle.AddHitPaddleListener(AddHits); }