public bool Activate( ActivationParams ap, Parameters.EnvelopeParams eo #if UNITY_EDITOR , Patch patch #endif ) { bool 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) { if (lastHandle != ap.handle || !Application.isPlaying) { lastHandle = ap.handle; return(Synthesizer.Activate(this, ap)); } return(false); }