示例#1
0
        protected override void OnEnable()
        {
            base.OnEnable();

            if (reference != IntPtr.Zero)
            {
                Native.EnableSequencer(reference, true);
            }
        }
示例#2
0
        protected override void OnDisable()
        {
            base.OnDisable();

            if (reference != IntPtr.Zero)
            {
                Native.EnableSequencer(reference, false);
                AllNotesOff();
            }
        }
示例#3
0
        void OnEnable()
        {
            if (reference != IntPtr.Zero)
            {
                Native.EnableSequencer(reference, true);
            }

            #if UNITY_EDITOR
            EditorApplication.playmodeStateChanged += HandleOnPlayModeChanged;
            #endif
        }
示例#4
0
        void OnDisable()
        {
            if (reference != IntPtr.Zero)
            {
                Native.EnableSequencer(reference, false);
                AllNotesOff();
            }

            #if UNITY_EDITOR
            EditorApplication.playmodeStateChanged -= HandleOnPlayModeChanged;
            #endif
        }