Example #1
0
        public void Run()
        {
            AssertNotDisposed();

            if (!hasInitialized)
            {
                DoInitialize();
                hasInitialized = true;
            }

            BeginRun();
            gameTimer = Stopwatch.StartNew();

            FNAPlatform.RunLoop(this);

            EndRun();

            OnExiting(this, EventArgs.Empty);
        }
Example #2
0
        public void Run()
        {
            AssertNotDisposed();

            if (!hasInitialized)
            {
                GameSubThread.Setup(this);
                GameSubThread.Instance.ScheduleWait(DoInitialize);
                hasInitialized = true;
            }

            BeginRun();
            gameTimer = Stopwatch.StartNew();

            FNAPlatform.RunLoop(this);

            GameSubThread.Abort();

            EndRun();

            OnExiting(this, EventArgs.Empty);
        }