public void DisplayQuery() { // There is a change in display, so clear everything. DisplayEventManager.OnClearDisplay(); // If there is no query being displayed. Set this query to be active. if (_activeButton == null) { _activeButton = this; Activate(); return; } // Since this point of the code has been reached there MUST be a query being displayed. // If this is NOT the active query, deactivate the current query and activate this query if (_activeButton != this) { _activeButton.Deactivate(); _activeButton = this; Activate(); return; } // If this IS the current query, then deactivate this query. if (_activeButton == this) { Deactivate(); _activeButton = null; return; } Debug.Log(_activeButton.gameObject.transform.GetSiblingIndex()); }
public override void Display() { base.Display(); DisplayEventManager.OnBoolQuestion(this); double confidence = (Math.Round(double.Parse(Confidence.ToString()) * 100 * 100)) / 100; DisplayEventManager.OnDisplayQuestion(string.Format("I am {0}% confident this is a correct detection of a human in the bounding box. Can you please verify my detection?", confidence)); }
private void OnQueryAnswered(object sender, QueryEventArgs e) { if (e.Query == query) { query.TotalLifeTime = query.ArrivalTime - query.DepartureTime; query.TotalUILifeTime = query.UIDepartureTime - query.UIArrivalTime; DisplayEventManager.OnClearDisplay(); query = null; Destroy(gameObject); } }
public override void Display() { DisplayEventManager.OnDisplayConfidence( Confidence.ToString(CultureInfo.CurrentCulture)); }
public override void Display() { base.Display(); DisplayEventManager.OnDisplayQuestion( "Is this a double detection?"); }
private void ButtonOnClick(int answer) { _query.Response = answer; MissionEventManager.OnQueryAnswered(_query); DisplayEventManager.OnClearDisplay(); }
public override void Display() { base.Display(); DisplayEventManager.OnTagQuestion(this); }
public override void Display() { Debug.Log(string.Format("Query {0} being displayed", QueryId)); base.Display(); DisplayEventManager.OnDisplayImage(Texture); }
private void OnAudioClipDownloaded(object sender, DownloadAudioClipEventArgs e) { Debug.Log(string.Format("Audio Received {0}", e.Clip.length)); DisplayEventManager.OnDisplayAudioClip(e.Clip); }
private void OnTextureDownloaded(object sender, DownloadTextureEventArgs e) { Debug.Log("Image Received"); DisplayEventManager.OnDisplayImage(e.ImageTexture); }