예제 #1
0
파일: Main.cs 프로젝트: CrossTyreck/MJNAir
    void Start()
    {
        radius = new Vector3(1, 0, 0);
        currentRotation = 0.0f;
        gameGrid = new ScoreBoard(gameGroundLevel.transform, GameObject.FindGameObjectsWithTag("Obstacle"));
        count = 0;
        x = (int)(gameGroundLevel.transform.localScale.x * 10);
        z = (int)(gameGroundLevel.transform.localScale.z * 10);
        offset = new Vector3(gameGroundLevel.transform.position.x - x * 0.5f, 0, gameGroundLevel.transform.position.z - z * 0.5f);

        startButton.enabled = false;
        startButton.transform.position = new Vector3(0.5f, 0.5f, 1);
        PerspectiveEditingCam.enabled = false;
        score = new ScoringSystem();
        score.InitializeScore();
    }