回答編集履歴

1

asを削除

2019/08/12 05:44

投稿

sakura_hana
sakura_hana

スコア11427

test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  if (Input.GetMouseButton(0)) {
24
24
 
25
- BallController _ball = Instantiate(ballPrefab) as BallController;
25
+ BallController _ball = Instantiate(ballPrefab);
26
26
 
27
27
  _ball.Shoot(new Vector3(0, 200, 2000));
28
28