// Update is called once per frame void onUpdate() { if (towerBind != null) { for (int i = 0; i < 5; i++) { Follower f = followersPanel.GetChild(i).GetComponent <Follower>(); if (towerBind.Followers.Count > i) { if (!f.gameObject.activeSelf) { f.gameObject.SetActive(true); } f.BindNPC(towerBind.Followers[i], towerBind); } else { f.gameObject.SetActive(false); } } } }