コード例 #1
0
ファイル: GameManager.cs プロジェクト: 2ty/race3d
        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 ();
        }
コード例 #2
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];
        }