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