Ejemplo n.º 1
0
    //Initialize variables
    void Start()
    {
        //Get reference/Cache
        rightPaddle = GameObject.Find("Paddle Objects/paddleRight").GetComponent <PaddleRight>();

        //Get reference/Cache
        leftPaddle = GameObject.Find("Paddle Objects/paddleLeft").GetComponent <PaddleLeft>();
    }
    //Initialize variables
    void Start()
    {
        rightPaddle = GameObject.Find("Paddle Objects/paddleRight").GetComponent <PaddleRight>();

        leftPaddle = GameObject.Find("Paddle Objects/paddleLeft").GetComponent <PaddleLeft>();
    }