GAudio.SubPulseModule.OnEnable C# (CSharp) Method

OnEnable() protected method

protected OnEnable ( ) : void
return void
        protected override void OnEnable()
        {
            base.OnEnable();

            if( _ParentPulse != null )
                _ParentPulse.SubscribeToPulse( this );

            _pulseInfo.Init( _Period, _Steps.Length );

            #if UNITY_EDITOR
            if( Application.isPlaying == false )
                EditorApplication.update += Update;
            #endif
        }