Restructure resource browsers.

This commit is contained in:
2023-11-23 00:50:37 +08:00
parent d7a38416aa
commit 54f75781f3
5 changed files with 51 additions and 43 deletions

View File

@@ -7,8 +7,8 @@ namespace Cryville.Crtr.Browsing.UI {
public Sprite Icon { get { return m_icon; } }
protected ResourceBrowserMaster Master { get; private set; }
protected virtual void Awake() {
Master = GetComponentInParent<ResourceBrowserMaster>();
protected void Init(ResourceBrowserMaster master) {
Master = master;
}
}
}