Exemplo n.º 1
0
 private void Start()
 {
     animator   = GetComponent <Animator>();
     pinCounter = GameObject.FindObjectOfType <PinCounter>();
     ball       = GameObject.FindObjectOfType <Ball>();
     ballSignal = GameObject.FindObjectOfType <BallSignal>();
 }
Exemplo n.º 2
0
    void Start()
    {
        ballSignal = GameObject.FindObjectOfType <BallSignal>();

        rigidBody            = GetComponent <Rigidbody>();
        rigidBody.useGravity = false; // Turn off Ball gravity at start
        startPosition        = transform.position;
    }