コード例 #1
0
ファイル: Collosions.cs プロジェクト: BOKeeffe/Golf_Game
    // Use this for initialization
    void Start()
    {
        golfBall       = GameObject.FindGameObjectWithTag("golfBall");
        golfBallScrpts = golfBall.GetComponent <GolfBall3>();

        playerScore = 3;

        triggetCollision            = true;
        ballFollowCamera[0].enabled = false;
        switchCamera = true;
    }
コード例 #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;
    }