示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     moveBall          = ball.GetComponent <MoveBall>();
     moveBallRigidbody = ball.GetComponent <Rigidbody2D>();
     animateTrump1     = player1.GetComponent <AnimateTrump>();
     animateTrump2     = player2.GetComponent <AnimateTrump>();
 }
示例#2
0
 void Start()
 {
     animateTrump = player.GetComponent <AnimateTrump>();
     globalScript = global.GetComponent <Global>();
 }