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