// Use this for initialization void Start() { golfball = FindObjectOfType <Golfball>(); club = FindObjectOfType <Club>(); //Setting up first hole moveToTeeBox(); }
// 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>(); }
// Use this for initialization void Start() { player = FindObjectOfType <Player>(); golfball = FindObjectOfType <Golfball>(); scoreDisplay.SetActive(false); }