Exemple #1
0
    void OnDisable()
    {
        UnityEngine.Debug.Log("on disable");

        if (bridge != null)
        {
            bridge.dispose();
        }
        if (NeedObjectVox)
        {
            vox.OnDisable();
        }
        if (NeedSaveSeq)
        {
            ledseq.close();
        }
        foreach (Thread w in workers)
        {
            w.Interrupt();
            w.Join();
        }
    }