public static void clearSingleton(){
			gameManager = null;
			gameView = null;
			imageManager = null;
			scenarioManager = null;
			statusManager = null;
			audioManager= null;
			eventManager= null;
			saveManager= null;
		}
Example #2
0
        public GameManager()
        {
            this.fm = new FileManager ();
            this.parser = new Parser ("Novel");

            this.imageManager = NovelSingleton.ImageManager;
            this.scenarioManager = NovelSingleton.ScenarioManager;
            this.statusManager = NovelSingleton.StatusManager;
            this.audioManager = NovelSingleton.AudioManager;
            this.eventManager = NovelSingleton.EventManager;
            this.saveManager = NovelSingleton.SaveManager;
            this.logManager = new LogManager ();
        }
Example #3
0
        //[DllImport("user32.dll", EntryPoint = "FindWindow")]
        //private static extern bool SetWindowText(IntPtr hWnd, System.String lpString);
        //[DllImport("user32.dll", EntryPoint = "FindWindow")]
        //private static extern IntPtr FindWindow(System.String className, System.String windowName);
        public GameManager()
        {
            //var w = FindWindow("UnityWndClass", null);
            //if (w != IntPtr.Zero)
            //{
            //    var wnd = Form.FromHandle(w);
            //    if (null != wnd) wnd.Text = "キュアぷらす スクリプトデバッガ";
            //}
            //SetWindowText(w, "キュアぷらす スクリプトデバッガ");

            this.fm = new FileManager(new FileLoader());
            this.parser = new Parser ("Novel");

            this.imageManager = NovelSingleton.ImageManager;
            this.scenarioManager = NovelSingleton.ScenarioManager;
            this.statusManager = NovelSingleton.StatusManager;
            this.audioManager = NovelSingleton.AudioManager;
            this.eventManager = NovelSingleton.EventManager;
            this.saveManager = NovelSingleton.SaveManager;
            this.logManager = new LogManager ();

            //var fl=System.Windows.Forms.Application.OpenForms;
            //var ff = fl[0];
        }