Пример #1
0
    /// <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);
    }