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