private void OnGUI() { CheckForClose(); if (!HandleMissingData()) { return; } if (audioEventCreatorGUI == null) { audioEventCreatorGUI = new AudioEventCreatorGUI(this); } isDirty = false; DrawTop(0); isDirty |= audioEventCreatorGUI.OnGUI(LeftWidth, (int)position.height - topHeight); if (isDirty) { Repaint(); } PostOnGUI(); }
private void OnEnable() { BaseEnable(); this.SetTitle("Event Window"); if (audioEventCreatorGUI == null) { audioEventCreatorGUI = new AudioEventCreatorGUI(this); } audioEventCreatorGUI.OnEnable(); }