예제 #1
0
파일: Ball.cs 프로젝트: JackDraak/2016Udemy
	void Start () {
		levelManager = GameObject.FindObjectOfType<LevelManager>();
		paddle = GameObject.FindObjectOfType<Paddle>();
		paddleToBallVector = this.transform.position - paddle.transform.position;
		if (levelManager.AutoplayReturn()) { LaunchBall(); }
	}