コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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;
            }
        }