void Start() { speedUP = startSpeed / 2; speed = startSpeed; ballComponent = ball.GetComponent <BallMoover>(); ballTransform = ball.GetComponent <Transform>(); _transform = GetComponent <Transform>(); }
private void CreateBall() { ballGO = Instantiate(ballPrefab); ballComponent = ballGO.GetComponent <BallMoover>(); }