예제 #1
0
 protected void OnScriptSaved()
 {
     if (ScriptSaved != null)
     {
         ScriptSaved.Invoke(this, EventArgs.Empty);
     }
 }
예제 #2
0
        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");
        }