Cleaned up window base code

This commit is contained in:
Pasha Bibko
2026-01-15 11:17:27 +00:00
parent da7cb58ec3
commit fd61dcb2f4
8 changed files with 32 additions and 40 deletions

View File

@@ -54,6 +54,13 @@ namespace InterfaceOff
}
public virtual void OnWindowInstantiation() { }
public virtual void OnWindowClicked() { }
/* Default close button closes the window */
public virtual void OnWindowCloseButtonClicked() => DestroyWindow();
protected void DestroyWindow()
{
Destroy(gameObject);
}
}
}