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; }
// Use this for initialization void Start() { instance = this; rbTargetBall = GetComponent <Rigidbody2D>(); rbTargetBall.drag = 10000; }
public override void InitializeAgent() { target_detector = target.GetComponent <TargetBall>(); dist_to_target = Vector3.Distance(target.transform.position, endpoint.transform.position); }