Esempio n. 1
0
 public void Init()
 {
     center        = new CenterButton(ClientSize.Width / 2 - 25, ClientSize.Height / 2 - 25, true);
     ball          = new TargetBall(10, 10, 20, false);
     score         = new Score();
     timer         = new Timer();
     targetCount   = -1;
     stoppingPoint = true;
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     instance          = this;
     rbTargetBall      = GetComponent <Rigidbody2D>();
     rbTargetBall.drag = 10000;
 }
Esempio n. 3
0
 public override void InitializeAgent()
 {
     target_detector = target.GetComponent <TargetBall>();
     dist_to_target  = Vector3.Distance(target.transform.position, endpoint.transform.position);
 }