static void Main(string[] args) { Console.CancelKeyPress += (sender, eArgs) => { _quitEvent.Set(); eArgs.Cancel = true; }; _controller = new QuadController(); // instantiate video stream Application.Run(new VideoStream(Properties.Settings.Default.StreamURL)); _quitEvent.WaitOne(); }
public void Die() { SaveData.AddValueInt("DeathTime", 1); SaveData.AddValueInt("PlayerInGame", -1); _dead = true; _myAnimations.Die(); if (SaveData.ReadValueInt("PlayerInGame") == 0) { Instantiate(death, transform.position, Quaternion.identity); CameraController.Death(); QuadController.Death(); PreLaserScript.Death(); Money.Death(); StartCoroutine("wait"); } }