コード例 #1
0
        public static void StartGame(string gamePath)
        {
            // Prepare the process to run
            ProcessStartInfo start = new ProcessStartInfo
            {
                FileName       = gamePath,
                WindowStyle    = ProcessWindowStyle.Maximized,
                CreateNoWindow = true
            };

            if (!ProcessActive)
            {
                ApplicationMngr.SpawnGameRunningScreen();
                _process = Process.Start(start);
            }
        }
コード例 #2
0
 private void Awake()
 {
     _instance = this;
 }