Exemplo n.º 1
0
    private bool isExampleFin;                     // レールの例が終わったか

    void Start()
    {
        if (CameraObj == null)
        {
            CameraObj = GameObject.Find("Main Camera");
        }

        linePoints = new List <Vector3> ();
        resetFlg   = false;
        clickFlg   = false;

        //isExampleFin = false;

        xRange = fieldRange.GetRange("x");
        zRange = fieldRange.GetRange("z");

        AudioSource[] audioSources = GetComponents <AudioSource> ();
        audioSourceOfResetButton  = audioSources[1];
        audioSourceOfCreateButton = audioSources[0];

        StartCoroutine(ExampleDraw());
    }