private void ThreadStartingPoint() { var tempWindow = new restart(); tempWindow.Show(); Dispatcher.Run(); CustomBootstrapperApplication.Dispatcher.InvokeShutdown(); }
public void Restart() { // This has to be here to fire the event restart handlerPhysicsCrash = OnRestart; if (handlerPhysicsCrash != null) { handlerPhysicsCrash(RegionInfo); } }
/// <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); } }
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); }
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); }
void Start() { restartScript = gameObject.GetComponent <restart>(); }