/// <summary>
        /// 
        /// </summary>
        /// <param name="visualScript"></param>
        public void AddVisualScript(VisualScript visualScript)
        {
            while (visualScripts.ContainsKey(lastSafeID))
                lastSafeID++;

            this.visualScripts.Add(lastSafeID, visualScript);

            SceneManager.GameProject.SaveVisualScripts();
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="visualScript"></param>
        public void AddVisualScript(VisualScript visualScript)
        {
            while (visualScripts.ContainsKey(lastSafeID))
            {
                lastSafeID++;
            }

            this.visualScripts.Add(lastSafeID, visualScript);

            SceneManager.GameProject.SaveVisualScripts();
        }
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     VisualScript vs = new VisualScript() { Name = "New Visual Script" };
     SceneManager.GameProject.VisualScriptManager.AddVisualScript(vs);
     ResetVSComboBox();
 }