示例#1
0
 void Start()
 {
     ballController = GameObject.FindGameObjectWithTag ("BallController").GetComponent<Ball_Controller> ();
     playerHoldingBall = this.gameObject.GetComponent<Player_HoldingBall> ();
     playerController = this.gameObject.GetComponent<Player_Movement> ();
     throwSpeed = 10.0f;
     throwPower = 0.25f;
     playerTransform = this.transform;
 }
示例#2
0
 void Start()
 {
     ballController    = GameObject.FindGameObjectWithTag("BallController").GetComponent <Ball_Controller> ();
     playerHoldingBall = this.gameObject.GetComponent <Player_HoldingBall> ();
     playerController  = this.gameObject.GetComponent <Player_Movement> ();
     throwSpeed        = 10.0f;
     throwPower        = 0.25f;
     playerTransform   = this.transform;
 }