Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        // use cam-mouse ray to cal the led world position
        if (NeedEmulator && Need2DClick && Input.GetButtonDown("Fire1"))
        {
            onTouch(Input.mousePosition);
        }

        // update real ledseq data and serialize data
        ledseq.clear();
        if (NeedObjectVox)
        {
            vox.Update();
        }
        if (NeedParticleVox)
        {
            pvox.Update();
        }
        if (NeedSaveSeq)
        {
            ledseq.save();
        }
        if (NeedEmulator)
        {
            emulator.showLed();
        }
        if (NeedInteraction)
        {
            interaction.UpdateInfo();
        }
        if (bridge != null)
        {
            bridge.showLed();
        }
    }
Exemple #2
0
    // Update is called once per frame
    void Update()
    {
        // use cam-mouse ray to cal the led world position
        if (Input.GetButtonDown("Fire1"))
        {
            onTouch(Input.mousePosition);
        }

        // update real ledseq data and serialize data
        ledseq.clear();
        vox.Update();
        pvox.Update();
        //ledseq.save();
        matrix.showLed();
        if (bridge != null)
        {
            bridge.showLed();
        }
    }