Disables file watcher during gameplay.
This commit is contained in:
@@ -23,6 +23,14 @@ namespace Cryville.Crtr.Browsing.UI {
|
||||
InitDialog();
|
||||
}
|
||||
|
||||
void OnEnable() {
|
||||
ResourceManager.Activate();
|
||||
}
|
||||
|
||||
void OnDisable() {
|
||||
ResourceManager.Deactivate();
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
protected void InitDialog() {
|
||||
_dialog = Instantiate(Resources.Load<GameObject>("Common/FileDialog")).GetComponent<FileDialog>();
|
||||
|
Reference in New Issue
Block a user