public bool Activate( ActivationParams ap, AudioParameters.EnvelopeParams eo #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, eo, ap #if UNITY_EDITOR , patch #endif )); } return(false); }
public bool Activate(ActivationParams ap, AudioParameters.EnvelopeParams ep) { return(program.Activate( ap, ep #if UNITY_EDITOR , this #endif )); }