// Use this for initialization void Start() { list = GameObject.Find("Canvas/MemberList/Viewport/Content").GetComponent <MemberInGuildList>(); btn = GetComponent <Button>(); dbService = GameObject.Find("Connection").GetComponent <DBConnection>(); btn.onClick.AddListener(GetInGuild); }
// Use this for initialization void Start() { dropdown = GetComponent <Dropdown>(); label = dropdown.transform.Find("Label"); dbService = GameObject.Find("Connection").GetComponent <DBConnection>(); members = GameObject.Find("Canvas/MemberList/Viewport/Content").GetComponent <MemberInGuildList>(); GetGuilds(); dropdown.onValueChanged.AddListener(delegate { UpdateDisplay(); }); ChangeToCurrentGuild(); }