/// <summary> /// Assign a reference to the Analyzer that this Subwindow sets values for /// </summary> /// <param name="analyzer">Analyzer instance from outside this class</param> public void AssignAnalyzer(Coda.Analyzer analyzer) { this.analyzer = analyzer; }
void OnEnable() { _analyzer = new Analyzer(); HandleWindowInstantiation();//make sure we have windows for our GUI _controlsPos = new Rect(0, 0, _controlsWidth, 200); _waveformPos = new Rect(_controlsWidth, 0, position.width - _controlsWidth >= 0 ? position.width - _controlsWidth : 0, 300); }