void Start() { button = GetComponent <GetButton>(); pressed = false; done = false; lights.SetActive(false); }
void Start() { door = GetComponent <BoxCollider>(); button = GetComponent <GetButton>(); doorOpen = false; animator = GetComponent <Animator>(); }
void ReleaseDesignerOutlets() { if (BetterAsyncButton != null) { BetterAsyncButton.Dispose(); BetterAsyncButton = null; } if (DownloadedImageView != null) { DownloadedImageView.Dispose(); DownloadedImageView = null; } if (GetButton != null) { GetButton.Dispose(); GetButton = null; } if (ResultLabel != null) { ResultLabel.Dispose(); ResultLabel = null; } if (ResultTextView != null) { ResultTextView.Dispose(); ResultTextView = null; } }
void ReleaseDesignerOutlets() { if (GetButton != null) { GetButton.Dispose(); GetButton = null; } if (ResultTextView != null) { ResultTextView.Dispose(); ResultTextView = null; } if (SetupButton != null) { SetupButton.Dispose(); SetupButton = null; } if (topView != null) { topView.Dispose(); topView = null; } if (UrlTextField != null) { UrlTextField.Dispose(); UrlTextField = null; } }
private void PageCbox_SelectionChanged(object sender, SelectionChangedEventArgs e) { FilmComponents.Page = PageCbox.SelectedIndex - 1; if (PageCbox.SelectedIndex > 0) { GetButton.Focus(); } }
private void roundTripButtonTest(string buttonName, SetButton setButton, GetButton getButton, PictureBox pictureBox) { if (stopButton.Enabled == false) { return; } try { setButton(XBoxButtonState.Released); DateTime timeOut = DateTime.Now.AddMilliseconds(100); while (getButton() == Microsoft.Xna.Framework.Input.ButtonState.Pressed && DateTime.Now < timeOut) { ; } long ticksEpoch = DateTime.Now.Ticks; for (int i = 0; i < iterationsPerTest && stopButton.Enabled; i++) { // Press Key setButton(XBoxButtonState.Pressed); timeOut = DateTime.Now.AddMilliseconds(100); while (getButton() == Microsoft.Xna.Framework.Input.ButtonState.Released && DateTime.Now < timeOut) { ; } // Release Key setButton(XBoxButtonState.Released); timeOut = DateTime.Now.AddMilliseconds(100); while (getButton() == Microsoft.Xna.Framework.Input.ButtonState.Pressed && DateTime.Now < timeOut) { ; } Application.DoEvents(); } long ticksNow = DateTime.Now.Ticks; long roundTripTime = (ticksNow - ticksEpoch + ticksRoundUp) / ticksPerTest; string entryLog = String.Format("{0:G} : {1} Button : Round Trip Time {2} mS{3}", DateTime.Now, buttonName, roundTripTime, Environment.NewLine); diagnosticsTextBox.AppendText(entryLog); SetPictureBoxStatus(pictureBox, roundTripTime <= expectedRoundTripTime ? PictureBoxStatus.Good : PictureBoxStatus.Bad); } catch { SetPictureBoxStatus(pictureBox, PictureBoxStatus.Bad); } }
void ReleaseDesignerOutlets() { if (DownloadedImageView != null) { DownloadedImageView.Dispose(); DownloadedImageView = null; } if (getAsync != null) { getAsync.Dispose(); getAsync = null; } if (GetButton != null) { GetButton.Dispose(); GetButton = null; } if (getXMLX != null) { getXMLX.Dispose(); getXMLX = null; } if (kayitOldumu != null) { kayitOldumu.Dispose(); kayitOldumu = null; } if (ResultLabel != null) { ResultLabel.Dispose(); ResultLabel = null; } if (ResultTextView != null) { ResultTextView.Dispose(); ResultTextView = null; } }
void ReleaseDesignerOutlets() { if (belgeGoster != null) { belgeGoster.Dispose(); belgeGoster = null; } if (DownloadedImageView != null) { DownloadedImageView.Dispose(); DownloadedImageView = null; } if (GetButton != null) { GetButton.Dispose(); GetButton = null; } if (ResultLabel != null) { ResultLabel.Dispose(); ResultLabel = null; } if (ResultTextView != null) { ResultTextView.Dispose(); ResultTextView = null; } if (dGosterUI != null) { dGosterUI.Dispose(); dGosterUI = null; } }
// Use this for initialization void Start() { isButtonPressed = false; clicker = gameObject.GetComponent <MeshRenderer>(); receiver = responder.GetComponent <GetButton>(); }
private void testButton(string buttonName, SetButton setButton, GetButton getButton, PictureBox pictureBox) { roundTripButtonTest(buttonName, setButton, getButton, pictureBox); unicastButtonTest(buttonName, setButton, pictureBox); }
void Start() { button = GetComponent <GetButton>(); rotate = GetComponent <RotateOnPedestal>(); wasPressed = false; }
private void roundTripButtonTest(string buttonName, SetButton setButton, GetButton getButton, PictureBox pictureBox) { if (stopButton.Enabled == false) return; try { setButton(XBoxButtonState.Released); DateTime timeOut = DateTime.Now.AddMilliseconds(100); while (getButton() == Microsoft.Xna.Framework.Input.ButtonState.Pressed && DateTime.Now < timeOut) ; long ticksEpoch = DateTime.Now.Ticks; for (int i = 0; i < iterationsPerTest && stopButton.Enabled; i++) { // Press Key setButton(XBoxButtonState.Pressed); timeOut = DateTime.Now.AddMilliseconds(100); while (getButton() == Microsoft.Xna.Framework.Input.ButtonState.Released && DateTime.Now < timeOut) ; // Release Key setButton(XBoxButtonState.Released); timeOut = DateTime.Now.AddMilliseconds(100); while (getButton() == Microsoft.Xna.Framework.Input.ButtonState.Pressed && DateTime.Now < timeOut) ; Application.DoEvents(); } long ticksNow = DateTime.Now.Ticks; long roundTripTime = (ticksNow - ticksEpoch + ticksRoundUp) / ticksPerTest; string entryLog = String.Format("{0:G} : {1} Button : Round Trip Time {2} mS{3}", DateTime.Now, buttonName, roundTripTime, Environment.NewLine); diagnosticsTextBox.AppendText(entryLog); SetPictureBoxStatus(pictureBox, roundTripTime <= expectedRoundTripTime ? PictureBoxStatus.Good : PictureBoxStatus.Bad); } catch { SetPictureBoxStatus(pictureBox, PictureBoxStatus.Bad); } }