private static void CleanupValidator() { if (prefabSandboxValidator_ != null) { prefabSandboxValidator_.Dispose(); prefabSandboxValidator_ = null; } }
private static void ReloadValidator() { if (data_ == null) { Debug.LogError("Can't reload validator - _data is null!"); return; } GameObject prefabInstance = data_.prefabInstance; if (prefabInstance == null) { Debug.LogError("Can't reload validator - prefabInstance is null!"); return; } CleanupValidator(); prefabSandboxValidator_ = new PrefabSandboxValidator(prefabInstance); }