private void DrawYesButton() { if (_dialogType == DialogType.No) { return; } GUI.enabled = _yesPossible; if (!GUILayout.Button(_yes)) { return; } Yes.Raise((T)this); if (_closeOnYes) { Close(); } }
protected void RaiseYes() { Yes.Raise((T)this); Close(); }
void onOkButtonClick(object sender, EventArgs e) { Yes.Raise(this, null); close(); }