示例#1
0
        // Use this for initialization
        void Start()
        {
            basePath   = Application.dataPath + "/../../Testset/Sequence/";
            folderName = "testFolder/";
            fileName   = "testFile.csv";
            createFolder(basePath);
            isReady     = false;
            folderIndex = 1;
            count       = 0;

            if (imageCapturer == null)
            {
                imageCapturer = transform.Find("ImageCapturer").GetComponent <ImageCapturer>();
            }
            if (dataCapturer == null)
            {
                dataCapturer = transform.Find("DataCapturer").GetComponent <DataCapturer>();
            }
            if (carPool == null)
            {
                carPool = GameObject.Find("CarPool").GetComponent <CarPool>();
            }
            regionCapturer = new RegionCapturer();

            screenRect = new Rect(0, 0, imageCapturer.captureWidth, imageCapturer.captureHeight);
        }
示例#2
0
 private void Start()
 {
     dataCapturer = transform.Find("CarCapturer").GetComponent <DataCapturer>();
     scenario     = new List <CarScenario>();
 }