Пример #1
0
    // Use this for initialization
    void Start()
    {
        golfball = FindObjectOfType <Golfball>();
        club     = FindObjectOfType <Club>();

        //Setting up first hole
        moveToTeeBox();
    }
Пример #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>();
    }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     player   = FindObjectOfType <Player>();
     golfball = FindObjectOfType <Golfball>();
     scoreDisplay.SetActive(false);
 }