Ejemplo n.º 1
0
        private void ThreadStartingPoint()
        {
            var tempWindow = new restart();

            tempWindow.Show();

            Dispatcher.Run();
            CustomBootstrapperApplication.Dispatcher.InvokeShutdown();
        }
Ejemplo n.º 2
0
        public void Restart()
        {
            // This has to be here to fire the event
            restart handlerPhysicsCrash = OnRestart;

            if (handlerPhysicsCrash != null)
            {
                handlerPhysicsCrash(RegionInfo);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Region Restart - Seconds till restart.
        /// </summary>
        /// <param name="seconds"></param>
        public virtual void Restart(int seconds)
        {
            m_log.Error("[REGION]: passing Restart Message up the namespace");
            restart handlerPhysicsCrash = OnRestart;

            if (handlerPhysicsCrash != null)
            {
                handlerPhysicsCrash(RegionInfo);
            }
        }
Ejemplo n.º 4
0
        protected override void Run()
        {
            Dispatcher = Dispatcher.CurrentDispatcher;
            var model     = new BootstrapperApplicationModel(this);
            var viewModel = new InstallViewModel(model);

            view    = new InstallView(viewModel);
            restreq = new restart();
            model.SetWindowHandle(view);
            this.Engine.Detect();
            view.Show();
            Dispatcher.Run();
            this.Engine.Quit(model.FinalResult);
        }
Ejemplo n.º 5
0
    void Start()
    {
        //Disable everything before game starts
        M         = GameObject.Find("character").GetComponent <Movement> ();
        M.enabled = false;

        pc         = GameObject.Find("Main Camera").GetComponent <PlayerCamera> ();
        pc.enabled = false;

        S         = GameObject.Find("character").GetComponent <swipe> ();
        S.enabled = false;

        E         = GameObject.Find("platform").GetComponent <Endless> ();
        E.enabled = false;

        E1         = GameObject.Find("Cube1").GetComponent <Endless> ();
        E1.enabled = false;

        E2         = GameObject.Find("Cube2").GetComponent <Endless> ();
        E2.enabled = false;

        E3         = GameObject.Find("Death").GetComponent <Endless> ();
        E3.enabled = false;

        r         = GameObject.Find("GameOver").GetComponent <restart> ();
        r.enabled = false;

        tt         = GameObject.Find("misc").GetComponent <Timer> ();
        tt.enabled = false;

        TapToStart     = GameObject.Find("Button");
        Gear           = GameObject.Find("Button1");
        GameOverScreen = GameObject.Find("GameOver");
        SelectScreen   = GameObject.Find("CSS");
        Score          = GameObject.Find("Score");
        BestScore      = GameObject.Find("Best");

        GameOverScreen.SetActive(false);
        SelectScreen.SetActive(false);
        Score.SetActive(false);
    }
Ejemplo n.º 6
0
 void Start()
 {
     restartScript = gameObject.GetComponent <restart>();
 }