Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        theBall           = GameObject.FindGameObjectWithTag("Ball");
        ballControlScript = theBall.GetComponent <BallControl>();

        theCircuitGrid           = GameObject.FindGameObjectWithTag("CircuitGrid");
        circuitGridControlScript = theCircuitGrid.GetComponent <CircuitGridControl>();

        theClassicalPaddle           = GameObject.FindGameObjectWithTag("ClassicalPaddle");
        classicalPaddleControlScript = theClassicalPaddle.GetComponent <ComputerControls>();

        arcadeButtonInput = gameObject.GetComponent <ArcadeButtonInput>();
        player            = GameController.Instance.player;

        RestartGame();
    }