Example #1
0
    // Use this for initialization
    void Start()
    {
        golfball = FindObjectOfType <Golfball>();
        club     = FindObjectOfType <Club>();

        //Setting up first hole
        moveToTeeBox();
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        inputManager = FindObjectOfType <InputManager>();
        Golfball golfball = FindObjectOfType <Golfball>();
        Club     club     = FindObjectOfType <Club>();

        startPosition = transform.position;
        startRotation = transform.rotation;
        rb            = GetComponent <Rigidbody>();
    }
Example #3
0
 // Use this for initialization
 void Start()
 {
     player   = FindObjectOfType <Player>();
     golfball = FindObjectOfType <Golfball>();
     scoreDisplay.SetActive(false);
 }