// Use this for initialization void Start() { moveBall = FindObjectOfType <MoveBall>(); moveBall.RegisterTarget(gameObject); }