// Start is called before the first frame update
    void Start()
    {
        SplatCounts = new int[5] {
            0, 0, 0, 0, 0
        };                                         // R, G, B, M, Y
        // instantiate launcher here
        launcher  = GameObject.FindGameObjectsWithTag("Launcher")[0];
        drawMeter = launcher.GetComponent <DrawMeter>();
        arcList   = drawMeter.CreateArcList();
        flasher   = launcher.GetComponent <P300_ArchFlashes>();
        launcher.SetActive(false);

        markerStream = GameObject.FindGameObjectsWithTag("MarkerStream")[0];
        inlet        = markerStream.GetComponent <Inlet_P300>();
    }
示例#2
0
    protected override void Process(string[] newSample, double timeStamp)
    {
        //Avoid doing heavy processing here, use CoRoutines
        input     = newSample[0];
        timestamp = timeStamp;

        //Obtain necessary information from the P300_Flashes.cs file.
        GameObject       cubeController = GameObject.Find("Launcher");
        P300_ArchFlashes p300Flashes    = cubeController.GetComponent <P300_ArchFlashes>();

        cube_list = p300Flashes.arcShapes;
        freqHz    = p300Flashes.freqHz;

        //Call CoRoutine to do further processing
        StartCoroutine("SelectedCube");
    }