protected void OnScriptSaved() { if (ScriptSaved != null) { ScriptSaved.Invoke(this, EventArgs.Empty); } }
public void SaveScript(Script script, string path) { Profiler.Start("ScriptManager_SafeScript"); AssetManager.CreateAsset(script, path); script.Path = Paths.GetProjectRelativePath(path); ScriptSaved?.Invoke(script); Profiler.Stop("ScriptManager_SafeScript"); }