Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        golfBall       = GameObject.FindGameObjectWithTag("golfBall");
        golfBallScrpts = golfBall.GetComponent <GolfBall3>();

        playerScore = 3;

        triggetCollision            = true;
        ballFollowCamera[0].enabled = false;
        switchCamera = true;
    }
Exemplo n.º 2
0
    void Start()
    {
        audioSource = GetComponent <AudioSource>();

        startYRotation = 70;
        score          = 0;
        level          = 1;

        golfBall       = GameObject.FindGameObjectWithTag("golfBall");
        golfBallScrpts = golfBall.GetComponent <GolfBall3>();

        colScripts = golfBall.GetComponent <Collosions>();

        scoreText.text = "Score: " + score;
        levelText.text = "Level : " + level;

        //rw.transform.rotation = imageWind;
    }