private void Start() { animator = GetComponent <Animator>(); pinCounter = GameObject.FindObjectOfType <PinCounter>(); ball = GameObject.FindObjectOfType <Ball>(); ballSignal = GameObject.FindObjectOfType <BallSignal>(); }
void Start() { ballSignal = GameObject.FindObjectOfType <BallSignal>(); rigidBody = GetComponent <Rigidbody>(); rigidBody.useGravity = false; // Turn off Ball gravity at start startPosition = transform.position; }