Exemple #1
0
 // Use this for initialization
 void Start()
 {
     mainGame = Camera.main.GetComponent <MainGame>();
     mainGame.AddBall(gameObject);
     rig      = mainGame.GetRigidbody2D(gameObject);
     velocity = mainGame.GetVelocity(gameObject);
 }