Example #1
0
        void OnVideoEnd(VideoPlayer player)
        {
            Debug.Log("On Video End");
            data.SaveToFile(SpectrumData.DataPath(player.clip));
#if UNITY_EDITOR
            UnityEditor.EditorApplication.isPlaying = false;
#endif
        }
        void Start()
        {
            osc = GetComponent <FaustPlugin_SimpleOsc>();

            var player = GetComponent <VideoPlayer>();

            data.LoadFile(SpectrumData.DataPath(player.clip));

            GetComponent <GLDrawer>().OnDraw += OnGLDraw;
        }