private void ActiveQuadSignalRNotifier_ActiveQuads(ActiveQuadsUpdate e) { if (e.ActiveQuads.Any()) { this.SelectQuad.options.Clear(); this.activeQuads.Clear(); this.activeQuads.AddRange(e.ActiveQuads); this.SelectQuad.options.AddRange( e.ActiveQuads.Select (quad => new Dropdown.OptionData() { text = quad.QuadId })); this.SelectQuad.interactable = true; } else { this.SelectQuad.options.Clear(); this.activeQuads.Clear(); this.SelectQuad.interactable = false; } }
private void ActiveQuadSignalRNotifier_ActiveQuads(ActiveQuadsUpdate e) { if (e.ActiveQuads.Any()) { this.SelectQuad.options.Clear(); this.activeQuads.Clear(); this.activeQuads.AddRange(e.ActiveQuads); this.SelectQuad.options.AddRange( e.ActiveQuads.Select (quad => new Dropdown.OptionData() { text = quad.QuadId })); this.SelectQuad.interactable = true; } else { this.SelectQuad.options.Clear(); this.activeQuads.Clear(); this.SelectQuad.interactable = false; } }