// Start is called before the first frame update void Start() { ballcollide = (BallCollide)ball.GetComponent(typeof(BallCollide)); balltransform = ball.transform; swap_camera(); }
// Start is called before the first frame update void Start() { p1_score_display = (LetterBoard)p1_score_obj.GetComponent(typeof(LetterBoard)); p2_score_display = (LetterBoard)p2_score_obj.GetComponent(typeof(LetterBoard)); letterboard = (LetterBoard)letterboard_obj.GetComponent(typeof(LetterBoard)); ball = (BallCollide)ball_obj.GetComponent(typeof(BallCollide)); paddle1 = (PaddleMove)paddle1_obj.GetComponent(typeof(PaddleMove)); paddle2 = (PaddleMove)paddle2_obj.GetComponent(typeof(PaddleMove)); game_init(); }
void Start() { ballCollide = this.GetComponent <BallCollide>(); }