コード例 #1
0
        public bool Activate(
            ActivationParams ap
#if UNITY_EDITOR
            ,
            Patch patch
#endif
            )
        {
            var delayed = !Mathf.Approximately(ap.delay, 0f);

            if (delayed || (!randomize && !increment) || (lastFrame != Time.frameCount) || !Application.isPlaying)
            {
                if (!delayed)
                {
                    lastFrame = Time.frameCount;
                }

                return(Synthesizer.Activate(
                           this,
                           ap
#if UNITY_EDITOR
                           ,
                           patch
#endif
                           ));
            }

            return(false);
        }
        public bool Activate(ActivationParams ap)
        {
            if ((lastHandle != ap.handle) || !Application.isPlaying)
            {
                lastHandle = ap.handle;
                return(Synthesizer.Activate(this, ap));
            }

            return(false);
        }
コード例 #3
0
        public bool Activate(ActivationParams ap, AudioParameters.EnvelopeParams ep)
        {
            return(program.Activate(
                       ap,
                       ep
#if UNITY_EDITOR
                       ,
                       this
#endif
                       ));
        }
コード例 #4
0
        public bool Activate(ActivationParams ap)
        {
            return(hasTimings
                ? sequence.Activate(ap)
                : program.Activate(
                       ap
#if UNITY_EDITOR
                       ,
                       this
#endif
                       ));
        }