// Use this for initialization private void Awake() { selCount = Utils.FindChild(transform, "SelValue").GetComponent<UILabel>(); soulCount = Utils.FindChild(transform, "SoulValue").GetComponent<UILabel>(); scHeroList = HeroModelLocator.Instance.SCHeroList; hero = HeroModelLocator.Instance.HeroTemplates; sellLis = UIEventListener.Get(transform.Find("Button-Sell").gameObject); grid = transform.Find("Container/Grid").GetComponent<UIGrid>(); }
public void Clear() { OrderType = OrderType.Time; GetHeroPos = 0; SCHeroList = null; AlreadyRequest = false; }
// Use this for initialization private void Awake() { NGUITools.SetActive(PropertyUpdater.gameObject, true); scHeroList = HeroModelLocator.Instance.SCHeroList; toggleObjects = transform.Find("ToggleButtons").gameObject; tabTemplate = transform.Find("TabTemplate").gameObject; teamGrid = transform.Find("Item/Grid").GetComponent<UIGrid>(); NGUITools.SetActive(tabTemplate, false); NGUITools.SetActive(Heros.transform.parent.gameObject, true); leaderSkillName = transform.Find("LeaderSkill/Name").GetComponent<UILabel>(); leaderSkillDesc = transform.Find("LeaderSkill/Desc").GetComponent<UILabel>(); }
// Use this for initialization void Awake() { herosNum = Utils.FindChild(transform, "HeroNumValue").GetComponent<UILabel>(); scHeroList = HeroModelLocator.Instance.SCHeroList; NGUITools.SetActive(Heros.transform.parent.gameObject, true); selMask = transform.Find("SelMask"); selMask.transform.parent = Heros.transform.parent; NGUITools.SetActive(selMask.gameObject, false); extendLis = UIEventListener.Get(Heros.transform.Find("ExtendButton/Icon").gameObject); }